File predicates.hpp
↰ Parent directory (include)
Size/align key wrappers, comparison predicates, and operator tag mapping.
Definition (include/predicates.hpp)
Detailed Description
HasStaticSizeconcept gates types that exposestatic constexpr std::size_t size.Size<T>,SizeOf<T>,AlignOf<T>present a unified::typeand::size.cmp,PredBy,op_tag, andopsbuild 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)cstddefct_string.inl(File ct_string.inl)functionalhtlist.hpp(File htlist.hpp)match.hpp(File match.hpp)