Typedef ctql::match_t

Typedef Documentation

template<auto Key, class ...Alts>
using ctql::match_t = typename detail::match<Key, Alts...>::type

Select a type based on a compile-time key.

Note

  • First-match wins: the earliest case_ with Key == K is chosen.

  • default_<T> sets the fallback if no earlier case matched. A later match still overrides the default (since it is “first-match wins”).

Template Parameters:
  • Key – The key to match against case_<K, T> alternatives.

  • Alts – Zero or more case_<K, T> and at most one default_<T>.

Return:

The chosen T as a type alias. If no case matches and no default_ is provided, the result is void.