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

From is implicitly convertible to To (std::is_convertible). More...

#include <StormByte/type_traits/conversions.hxx>

Concept definition

template<typename From, typename To>
concept StormByte::Type::ConvertibleTo = std::is_convertible_v<From, To>
From is implicitly convertible to To (std::is_convertible).
Definition conversions.hxx:74

Detailed Description

From is implicitly convertible to To (std::is_convertible).

Template Parameters
FromSource type.
ToDestination type.

Not std::convertible_to: that also requires an explicit To construct from From and would tighten the contract.