StormByte C++ Library 1.2.0
StormByte is a comprehensive, cross-platform C++ library aimed at easing system programming, configuration management, logging, and database handling tasks. This library provides a unified API that abstracts away the complexities and inconsistencies of different platforms (Windows, Linux).
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:57

Detailed Description

From may be explicitly converted to To with static_cast.

Template Parameters
FromSource type.
ToDestination type.
Note
Accepts both implicit and explicit conversions. Unlike ConvertibleTo, this matches types with an explicit conversion operator or constructor.