Constructs the string from a range of exactly N characters given by an iterator/sentinel pair

Synopsis

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

template<
    std::input_iterator It,
    std::sentinel_for<It> S>
requires std::same_as<std::iter_value_t<It>, CharT>
[[nodiscard]]
constexpr
basic_fixed_string(
    It begin,
    S end);

Return Value

Note

The return value should not be discarded.

Parameters

Name

Description

begin

Iterator to the first character

end

Sentinel marking the end of the character sequence

Created with MrDocs