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

Checks whether a type is explicit convertible to another. More...

#include <stl_extensions.hpp>

Concept definition

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

Detailed Description

Checks whether a type is explicit convertible to another.

This is a less restrictive version of the std::convertible_to concept.

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