std::type_info::hash_code

size_t hash_code() const; (since C++11) Returns an unspecified value, which is identical for the type_info objects referring to the same type. No other guarantees are given. For example, the same value may be returned for different types. The value can also change between invocations of the same program. Parameters (none). Return value Some value, which is identical for the same types. Example The following program is an example of an efficient type-value mapping without using

std::common_type(std::chrono::duration)

template <class Rep1, class Period1, class Rep2, class Period2> struct common_type<std::chrono::duration<Rep1, Period1>, std::chrono::duration<Rep2, Period2>> { typedef std::chrono::duration< typename std::common_type<Rep1, Rep2>::type, /*see note*/> type; }; (since C++11) Exposes the type named type, which is the common type of two std::chrono::durations. Note The period of the resulting duration is the greatest comm

std::literals::chrono_literals::operator&quot;&quot;ms

Defined in header <chrono> constexpr std::chrono::milliseconds operator "" ms(unsigned long long ms); (1) (since C++14) constexpr std::chrono::duration</*unspecified*/, std::milli> operator "" ms(long double ms); (2) (since C++14) Forms a std::chrono::duration literal representing milliseconds. 1) integer literal, returns exactly std::chrono::milliseconds(ms) 2) floating-point literal, returns a floating-point duration equivalent to

std::ios_base::failure

Defined in header <ios> class failure; The class std::ios_base::failure defines an exception object that is thrown on failure by the functions in the Input/Output library. std::ios_base::failure may be defined either as a member class of std::ios_base or as a synonym (typedef) for another class with equivalent functionality. (since C++17). Inheritance diagram. (until C++11) Inheritance diagram. (since C++11) Member functions (constructor) constructs

std::piecewise_constant_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::deque::resize

void resize( size_type count, T value = T() ); (until C++11) void resize( size_type count ); (1) (since C++11) void resize( size_type count, const value_type& value ); (2) (since C++11) Resizes the container to contain count elements. If the current size is greater than count, the container is reduced to its first count elements. If the current size is less than count, additional elements are appended and initialized with copies of value. (until C++11) If the current

std::multimap::empty

bool empty() const; Checks if the container has no elements, i.e. whether begin() == end(). Parameters (none). Return value true if the container is empty, false otherwise. Exceptions (none) (until C++11) noexcept specification: noexcept (since C++11) Complexity Constant. Example The following code uses empty to check if a std::multimap<int, int> contains any elements: #include <map> #include <iostream> #include <utility> int main() { st

std::swap(std::unordered_multiset)

template< class Key, class Hash, class KeyEqual, class Alloc > void swap( unordered_multiset<Key,Hash,KeyEqual,Alloc>& lhs, unordered_multiset<Key,Hash,KeyEqual,Alloc>& rhs ); (since C++11) Specializes the std::swap algorithm for std::unordered_multiset. Swaps the contents of lhs and rhs. Calls lhs.swap(rhs). Parameters lhs, rhs - containers whose contents to swap Return value (none). Complexity Constant. Exceptions noexcept spe

std::unordered_multiset::begin

iterator begin(); (since C++11) const_iterator begin() const; (since C++11) const_iterator cbegin() const; (since C++11) Returns an iterator to the first element of the container. If the container is empty, the returned iterator will be equal to end(). Parameters (none). Return value Iterator to the first element. Exceptions noexcept specification: noexcept Complexity Constant. Example #include <iostream> #include <iterator> #include <string

std::student_t_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.