StormByte C++ Library 0.0.9999
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::ConvertibleTo Concept Reference

Concept to check if one type is convertible to another. More...

#include <type_traits.hxx>

Concept definition

template<typename From, typename To>
concept StormByte::Type::ConvertibleTo = std::is_convertible_v<From, To>
Concept to check if one type is convertible to another.
Definition type_traits.hxx:402

Detailed Description

Concept to check if one type is convertible to another.

Template Parameters
FromSource type.
ToTarget type.

Types satisfy ConvertibleTo if From can be implicitly converted to To.

template<typename From, typename To>
To convert(From value) { return static_cast<To>(value); }