Finds the single modifier from modifiers present in [begin, end).]
Declared in <mp-units/utility/format.h>
template<std::forward_iterator It>
[[nodiscard]]
constexpr
It
at_most_one_of(
It begin,
It end,
std::string_view modifiers);
Throws when more than one is used, which is how a format-spec states that a group of modifier letters is mutually exclusive.
the position of the single modifier present, or end when there is none
The return value should not be discarded.
| Name | Description |
|---|---|
| begin | the beginning of the range to search |
| end | the end of the range to search |
| modifiers | the set of mutually exclusive modifier characters to look for |