File ct_string.inl

Parent directory (include)

Compile-time string utilities and small metaprogramming helpers.

Definition (include/ct_string.inl)

Detailed Description

Provides a fixed-size ct_string<N> that can be constructed at compile time, concatenated, compared, and converted to std::string_view. Also includes:

  • a consteval to_ct_string<N>() that renders an integer template arg to a ct_string,

  • a user-defined literal "_ct" that turns a string literal into a ct_string,

  • an overload set combiner match{...} for pattern-style visitation,

  • a foreach_indexed<Ts...>(fn) that invokes fn.template operator()<T, I>() for each T.

Requires C++20 for class NTTPs used by the "_ct" literal.

Includes

  • array

  • cstddef

  • functional

  • string_view

  • utility

Included By

Namespaces

Classes

Functions

Defines