File predicates.hpp
↰ Parent directory (include
)
Size/align key wrappers, comparison predicates, and operator tag mapping.
Definition (include/predicates.hpp
)
Detailed Description
HasStaticSize
concept gates types that exposestatic constexpr std::size_t size
.Size<T>
,SizeOf<T>
,AlignOf<T>
present a unified::type
and::size
.cmp
,PredBy
,op_tag
, andops
build size-based predicates.op_type<"...">
maps a compile-time string token (e.g."<"_ct
) to an operator tag whosetemplate pred<L,R>
can be used in algorithms (e.g. partition/sort).Helpers
Size_t
,SizeOf_t
,AlignOf_t
, andApply<S,...>
create keyed typelists.
Example
structA{staticconstexprstd::size_tsize=3;}; structB{staticconstexprstd::size_tsize=5;};
usingLT=:ref:`exhale_typedef_predicates_8hpp_1adc079efedc1088be4f5cf68b7a56d779`<”<”_ct>;//operatortagforless-than static_assert(LT::templatepred<A,B>::value);//3<5
usingKeys=:ref:exhale_struct_structctql_1_1detail_1_1HTList;//HTList<Size<A>,Size<B>>
Includes
concepts
(File concepts.hpp)cstddef
ct_string.inl
(File ct_string.inl)functional
htlist.hpp
(File htlist.hpp)match.hpp
(File match.hpp)