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 act_string
,a user-defined literal
"_ct"
that turns a string literal into act_string
,an overload set combiner
match{...}
for pattern-style visitation,a
foreach_indexed<Ts...>(fn)
that invokesfn.template operator()<T, I>()
for eachT
.
Requires C++20 for class NTTPs used by the "_ct"
literal.
Includes
array
cstddef
functional
string_view
utility