std::multimap::upper_bound

iterator upper_bound( const Key& key ); (1) const_iterator upper_bound( const Key& key ) const; (1) template< class K > iterator upper_bound( const K& x ); (2) (since C++14) template< class K > const_iterator upper_bound( const K& x ) const; (2) (since C++14) 1) Returns an iterator pointing to the first element that is greater than key. 2) Returns an iterator pointing to the first element that compares greater to the value x. This overlo

std::multimap::value_compare

class value_compare; std::multimap::value_compare is a function object that compares objects of type std::multimap::value_type (key-value pairs) by comparing of the first components of the pairs. Member types Type Definition result_type bool first_argument_type value_type second_argument_type value_type Protected member objects Compare comp the stored comparator (protected member object) Member functions (constructor) constructs a new value_compare o

std::multiplies

Defined in header <functional> template< class T > struct multiplies; (until C++14) template< class T = void > struct multiplies; (since C++14) Function object for performing multiplication. Effectively calls operator* on two instances of type T. Specializations The standard library provides a specialization of std::multiplies when T is not specified, which leaves the parameter types and return type to be deduced. multiplies<void> function ob

std::multiplies&lt;void&gt;

Defined in header <functional> template<> class multiplies<void>; (since C++14) std::multiplies<> is a specialization of std::multiplies with parameter and return type deduced. Member types Member type Definition is_transparent /* unspecified */ Member functions operator() returns the product of two arguments (public member function) std::multiplies<>::operator() template< class T, class U> constexpr auto operator()

std::multimap::multimap

(1) explicit multimap( const Compare& comp = Compare(), const Allocator& alloc = Allocator() ); (until C++14) multimap() : multimap( Compare() ) {} explicit multimap( const Compare& comp, const Allocator& alloc = Allocator() ); (since C++14) explicit multimap( const Allocator& alloc ); (1) (since C++11) (2) template< class InputIterator > multimap( InputIterator first, InputIterator last, const Comp

std::multimap::size

size_type size() const; Returns the number of elements in the container, i.e. std::distance(begin(), end()). Parameters (none). Return value The number of elements in the container. Exceptions (none) (until C++11) noexcept specification: noexcept (since C++11) Complexity Constant. Example The following code uses size to display the number of elements in a std::multimap: #include <map> #include <iostream> int main() { std::multimap<int,char> n

std::multimap::rbegin

reverse_iterator rbegin(); const_reverse_iterator rbegin() const; const_reverse_iterator crbegin() const; (since C++11) Returns a reverse iterator to the first element of the reversed container. It corresponds to the last element of the non-reversed container. Parameters (none). Return value Reverse iterator to the first element. Exceptions (none) (until C++11) noexcept specification: noexcept (since C++11) Complexity Constant. See also rend crend r

std::multimap::swap

void swap( multimap& other ); Exchanges the contents of the container with those of other. Does not invoke any move, copy, or swap operations on individual elements. All iterators and references remain valid. The past-the-end iterator is invalidated. The Pred objects must be Swappable, and they are exchanged using unqualified call to non-member swap. If std::allocator_traits<allocator_type>::propagate_on_container_swap::value is true, then the allocators are exchanged using a

std::multimap::rend

reverse_iterator rend(); const_reverse_iterator rend() const; const_reverse_iterator crend() const; (since C++11) Returns a reverse iterator to the element following the last element of the reversed container. It corresponds to the element preceding the first element of the non-reversed container. This element acts as a placeholder, attempting to access it results in undefined behavior. Parameters (none). Return value Reverse iterator to the element following the last

std::multimap::get_allocator

allocator_type get_allocator() const; Returns the allocator associated with the container. Parameters (none). Return value The associated allocator. Complexity Constant.