Determines, whether From can be explicitly converted to To.
More...
#include <Concepts.hpp>
template<typename From, typename To>
requires {
static_cast<To>(std::declval<From>());
}
Determines, whether From can be explicitly converted to To.
Definition Concepts.hpp:34
Determines, whether From can be explicitly converted to To.
- Note
- In fact, this is a more relaxed version of std::convertible_to, as this also requires implicit-convertibility.
- See also
- https://en.cppreference.com/w/cpp/concepts/convertible_to