StormByte 2.0.0
C++26 foundation of the StormByte suite
 
Loading...
Searching...
No Matches
StormByte::Type::ExplicitlyConvertibleTo Concept Reference

From may be explicitly converted to To with static_cast. More...

#include <StormByte/type_traits/conversions.hxx>

Concept definition

template<typename From, typename To>
concept StormByte::Type::ExplicitlyConvertibleTo = requires(From value) {
static_cast<To>(value);
}
From may be explicitly converted to To with static_cast.
Definition conversions.hxx:86

Detailed Description

From may be explicitly converted to To with static_cast.

Template Parameters
FromSource type.
ToDestination type.

Accepts both implicit and explicit conversions. Unlike StormByte::Type::ConvertibleTo, this matches types with an explicit conversion operator or constructor.