.. _file_include_ct_string.inl: File ct_string.inl ================== |exhale_lsh| :ref:`Parent directory ` (``include``) .. |exhale_lsh| unicode:: U+021B0 .. UPWARDS ARROW WITH TIP LEFTWARDS Compile-time string utilities and small metaprogramming helpers. .. contents:: Contents :local: :backlinks: none Definition (``include/ct_string.inl``) -------------------------------------- .. toctree:: :maxdepth: 1 program_listing_file_include_ct_string.inl.rst Detailed Description -------------------- Provides a fixed-size ``ct_string`` that can be constructed at compile time, concatenated, compared, and converted to ``std::string_view``. Also includes: - a consteval ``to_ct_string()`` 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(fn)`` that invokes ``fn.template operator()()`` for each ``T``. Requires C++20 for class NTTPs used by the ``"_ct"`` literal. Includes -------- - ``array`` - ``cstddef`` - ``functional`` - ``string_view`` - ``utility`` Included By ----------- - :ref:`file_include_predicates.hpp` Namespaces ---------- - :ref:`namespace_ctql` Classes ------- - :ref:`exhale_struct_structctql_1_1ct__string` - :ref:`exhale_struct_structctql_1_1match` Functions --------- - :ref:`exhale_function_ct__string_8inl_1a2f1a2405af260f9fb5305292919eaae2` - :ref:`exhale_function_ct__string_8inl_1a32dd5fb3c9ddb24a749d539af970f57b` - :ref:`exhale_function_ct__string_8inl_1ae68183b18ae3d9f9ac9c027aa6092143` - :ref:`exhale_function_ct__string_8inl_1aa6df6976ac9cfadbf32f8c52e3ccfdac` - :ref:`exhale_function_ct__string_8inl_1a9649f07085359294666ef7fbd7a5f852` - :ref:`exhale_function_ct__string_8inl_1a7b6420169a2180bb9078691848ee6b87` - :ref:`exhale_function_ct__string_8inl_1a529bbf9ac100a746e8a6c251253b90f4` Defines ------- - :ref:`exhale_define_ct__string_8inl_1af562767c3234c2cfdd73ca983fb9a8f7`