...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
Returns a range of iterators to the fields with the specified name.
std::pair< const_iterator, const_iterator > equal_range( string_view name) const;
This function returns the first and last iterators to the ordered fields with the specified name.
The fields represented by the range are ordered. Its elements are guaranteed to match the field ordering of the message. This means users do not need to sort this range when comparing fields of the same name in different messages.
Name |
Description |
---|---|
|
The field name. |
A range of iterators to fields with the same name, otherwise an empty range.