Circus 0.0.1-alpha
C++ Serialization Framework
Loading...
Searching...
No Matches
circus::utils::cxpr_stream< args > Struct Template Reference

Compile-time concatenation of multiple string_views into a single string_view. More...

#include <cxpr_stream.hpp>

Static Public Attributes

static constexpr std::size_t size = (args.size() + ... + 0)
 Total size of the concatenated string_view.
static constexpr std::string_view value {arr.begin(), arr.end()}
 The concatenated string_view spanning the static array.

Detailed Description

template<const std::string_view &... args>
struct circus::utils::cxpr_stream< args >

Compile-time concatenation of multiple string_views into a single string_view.

This class template accepts a pack of string_view references and concatenates them into a single contiguous char array at compile time.

Template Parameters
argsA parameter pack of const std::string_view& to be concatenated.
Note
The resulting concatenated string_view is stored as a static constexpr member value.

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