Skip to content

strata::fixed_string

Part of Utilities.

template <std::size_t N>
struct strata::fixed_string;

A string literal as a template argument: einsum<"ij,jk->ik">.

Two arguments are the same when their characters are, member by member, as for any class type used as a template argument; no == is needed for that.

Template parameters

Name Description
N The length of the literal, counting the terminating null.

Members

data

char data[N] {}

The characters, including the terminating null.

view

constexpr std::string_view view() const noexcept

The characters, without the terminating null.