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 expose static constexpr std::size_t size.

  • Size<T>, SizeOf<T>, AlignOf<T> present a unified ::type and ::size.

  • cmp, PredBy, op_tag, and ops build size-based predicates.

  • op_type<"..."> maps a compile-time string token (e.g. "<"_ct) to an operator tag whose template pred<L,R> can be used in algorithms (e.g. partition/sort).

  • Helpers Size_t, SizeOf_t, AlignOf_t, and Apply<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

Included By

Namespaces

Classes

Typedefs