Templa 0.0.1-alpha
C++ Metaprogramming Utilities
Loading...
Searching...
No Matches
templa::algorithms::join< Strs > Struct Template Reference

Compile-time string concatenation of multiple std::string_view references. More...

#include <algorithms.hpp>

Static Public Attributes

static constexpr std::string_view value = {arr.data(), arr.size() - 1}
 The resulting joined string as a std::string_view.

Detailed Description

template<const std::string_view &... Strs>
struct templa::algorithms::join< Strs >

Compile-time string concatenation of multiple std::string_view references.

Joins multiple string literals (passed as std::string_view references) into a single compile-time std::string_view.

Template Parameters
StrsParameter pack of std::string_view references to be joined.
Note
This struct is useful for generating compile-time string identifiers or type names without runtime overhead.

The documentation for this struct was generated from the following file: