7#include "type_traits.hpp"
23template<
typename T,
typename O>
24concept same = std::is_same_v<T, O>;
32template<
typename BaseType,
typename DerivedType>
33concept base_of = std::is_base_of_v<BaseType, DerivedType>;
35template<
typename BaseType,
typename DerivedType>
38template<
typename DerivedType,
typename BaseType>
39concept derived_from = tt::is_derived_from_v<DerivedType, BaseType>;
41template<
typename DerivedType,
typename BaseType>
44template<
typename BaseType,
typename DerivedType>
47template<
typename BaseType,
typename DerivedType>
63 from_string<T>(std::string_view{})
65 ->std::convertible_to<T>;
68template<
typename From,
typename To>
74 ->std::convertible_to<To>;
83 ->std::convertible_to<
size_t>;
Definition concepts.hpp:15
Definition concepts.hpp:18
Definition concepts.hpp:21
Definition concepts.hpp:24
Definition concepts.hpp:27
Definition concepts.hpp:30
Definition concepts.hpp:33
Definition concepts.hpp:36
Definition concepts.hpp:39
Definition concepts.hpp:42
Definition concepts.hpp:45
Definition concepts.hpp:48
Definition concepts.hpp:51
Definition concepts.hpp:60
Definition concepts.hpp:69
Definition concepts.hpp:78