45 using Map = std::multimap<std::string,OptionValue,std::less<std::string>> ;
46 using value_type = Map::value_type ;
47 using iterator = Map::iterator ;
48 using const_iterator = Map::const_iterator ;
51 void insert(
const Map::value_type & ) ;
62 const_iterator
begin()
const ;
65 const_iterator
cbegin()
const ;
68 const_iterator
end()
const ;
71 const_iterator
cend()
const ;
84 bool contains(
const char * )
const ;
87 bool contains(
const std::string & )
const ;
105 using Range = std::pair<Map::const_iterator,Map::const_iterator> ;
108 std::string join( Map::const_iterator , Map::const_iterator ,
string_view )
const ;
A multimap-like container for command-line options and their values.
const_iterator cend() const
Returns the off-the-end iterator.
void replace(string_view key, const std::string &value)
Replaces all matching values with a single value.
void clear()
Clears the map.
std::size_t count(string_view key) const
Returns the total repeat count for all matching entries.
bool contains(string_view) const
Returns true if the map contains the given key, but ignoring 'off' option-values.
unsigned int number(string_view key, unsigned int default_) const
Returns the matching value as a number.
const_iterator cbegin() const
Returns the begin iterator.
const_iterator end() const
Returns the off-the-end iterator.
void insert(const Map::value_type &)
Inserts the key/value pair into the map.
void increment(string_view key)
Increments the repeat count for the given entry.
const_iterator find(string_view) const
Finds the map entry with the given key.
std::string value(string_view key, string_view default_={}) const
Returns the matching value, with concatentation into a comma-separated list if multivalued (with no e...
const_iterator begin() const
Returns the begin iterator.
A class like c++17's std::string_view.