Typedef ctql::op_type

Typedef Documentation

template<ct_string str>
using ctql::op_type = ctql::match_t<str, case_<"<="_ct, ops::leq>, case_<"<"_ct, ops::lt>, case_<">="_ct, ops::geq>, case_<">"_ct, ops::gt>, case_<"=="_ct, ops::eq>, case_<"!="_ct, ops::neq>, default_<void>>

Map a compile-time operator token to an operator tag.

Example

using Tag = ctql::op_type<">="_ct>;
static_assert(Tag::template pred<A,B>::value == (A::size >= B::size));
Template Parameters:

str – Token such as "<"_ct, ">="_ct, "=="_ct, "!="_ct.

Return:

One of the tags in ops. If unknown, yields void.