Simple-Utility v2.3.1
Loading...
Searching...
No Matches
sl::concepts::nothrow_explicitly_convertible_to Concept Reference

Checks whether a type is explicit convertible to another and does not throw. More...

#include <stl_extensions.hpp>

Concept definition

template<class TFrom, class TTo>
{
{ static_cast<TTo>(std::declval<TFrom>()) } noexcept;
}
Checks whether a type is explicit convertible to another and does not throw.
Definition: stl_extensions.hpp:177

Detailed Description

Checks whether a type is explicit convertible to another and does not throw.

This is a less restrictive version of the std::convertible_to concept, but with additional noexcept check.

See also
https://en.cppreference.com/w/cpp/concepts/convertible_to
Template Parameters
TFromThe source type.
TToThe target type.