mimic++ v9.2.1
Loading...
Searching...
No Matches
mimicpp::util::explicitly_convertible_to Concept Reference

Determines, whether From can be explicitly converted to To. More...

#include <Concepts.hpp>

Concept definition

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

Detailed Description

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