std::priority_queue::top

const_reference top() const; Returns reference to the top element in the priority queue. This element will be removed on a call to pop(). If default comparison function is used, the returned element is also the greatest among the elements in the queue. Parameters (none). Return value Reference to the top element as if obtained by a call to c.front(). Complexity Constant. See also pop removes the top element (public member function)

FormattedOutputFunction

Requirements A FormattedOutputFunction is a stream output function that performs the following: Constructs an object of type basic_ostream::sentry with automatic storage duration, which performs the following if eofbit or badbit are set on the output stream, sets the failbit as well, and if exceptions on failbit are enabled in this output stream's exception mask, throws ios_base::failure. flushes the tie()'d output stream, if applicable. Checks the status of the sentry by calling sent

std::map::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::geometric_distribution::reset

void reset(); (since C++11) Resets the internal state of the distribution object. After a call to this function, the next call to operator() on the distribution object will not be dependent on previous calls to operator(). Parameters (none). Return value (none). Complexity Constant.

operators (std::map)

template< class Key, class T, class Compare, class Alloc > bool operator==( const map<Key,T,Compare,Alloc>& lhs, const map<Key,T,Compare,Alloc>& rhs ); (1) template< class Key, class T, class Compare, class Alloc > bool operator!=( const map<Key,T,Compare,Alloc>& lhs, const map<Key,T,Compare,Alloc>& rhs ); (2) template< class Key, class T, class Compare, class Alloc > bool operator<( cons

std::random_device::random_device

explicit random_device(const std::string& token = /*implementation-defined*/ ); (1) (since C++11) random_device(const random_device& ) = delete; (2) (since C++11) 1) Constructs a new std::random_device object, making use of the argument token, if provided, in implementation-defined manner. 2) The copy constructor is deleted: std::random_device is not copyable. Exceptions Throws an implementation-defined exceptions derived from std::exception on failure. Notes The

std::basic_string::reserve

void reserve( size_type new_cap = 0 ); Informs a std::basic_string object of a planned change in size, so that it can manage the storage allocation appropriately. If new_cap is greater than the current capacity(), new storage is allocated, and capacity() is made equal or greater than new_cap. If new_cap is less than the current capacity(), this is a non-binding shrink request. If new_cap is less than the current size(), this is a non-binding shrink-to-fit request equivalent to shri

std::negative_binomial_distribution::min

result_type min() const; (since C++11) Returns the minimum value potentially generated by the distribution. Parameters (none). Return value The minimum value potentially generated by the distribution. Complexity Constant. See also max returns the maximum potentially generated value (public member function)

std::char_traits::length

static std::size_t length( const char_type* s ); Returns the length of the character sequence pointed to by s, that is, the position of the terminating null character (CharT()). Parameters s - pointer to a character sequence to return length of Return value The length of character sequence pointed to by s. Exceptions (none). Complexity Linear. Example #include <iostream> void print(const char* str) { std::cout << "string '" << str <<

std::regex_traits::value

int value( CharT ch, int radix ) const; (since C++11) Determines the value represented by the digit ch in the numeric base radix, given the currently imbued locale. This function is called by std::regex when processing Quantifiers such as {1} or {2,5}, Backreferences such as \1, and hexadecimal and Unicode character escapes. Parameters ch - the character that may represent a digit radix - either 8, 10, or 16 Return value The numeric value if ch indeed represents a di