mp_units::basic_fixed_string::basic_fixed_string

Constructs the string from an input range of exactly N characters

Synopsis

Declared in <mp-units/ext/fixed_string.h>

template<std::ranges::input_range R>
requires std::same_as<std::ranges::range_value_t<R>, CharT>
[[nodiscard]]
constexpr
basic_fixed_string(
    std::from_range_t from_range_tag,
    R&& r);

Return Value

NOTE

The return value should not be discarded.

Parameters

NameDescription
from_range_tagTag disambiguating this overload as taking a range
rThe range of characters to copy from