std::vector::shrink_to_fit

void shrink_to_fit(); (since C++11) Requests the removal of unused capacity. It is a non-binding request to reduce capacity() to size(). It depends on the implementation if the request is fulfilled. All iterators, including the past the end iterator, are potentially invalidated. Parameters (none). Type requirements - T must meet the requirements of MoveInsertable. Return value (none). Complexity At most linear in the size of the container. Notes If an exception is throw

std::time_get::date_order

Defined in header <locale> public: dateorder date_order() const; (1) protected: virtual dateorder do_date_order() const; (2) 1) Public member function, calls the protected virtual member function do_date_order of the most derived class. 2) Returns a value of type std::time_base::dateorder, which describes the default date format used by this locale (expected by get_date() and produced by std::strftime() with format specifier '%x'). The valid values (inherited from s

std::get(std::array)

template< size_t I, class T, size_t N > constexpr T& get( array<T,N>& a ); (1) (since C++11) template< size_t I, class T, size_t N > constexpr T&& get( array<T,N>&& a ); (2) (since C++11) template< size_t I, class T, size_t N > constexpr const T& get( const array<T,N>& a ); (3) (since C++11) template< size_t I, class T, size_t N > constexpr const T&& get( const array<T,N>&& a );

operators (std::discrete_distribution)

template< class ResultType > bool operator==( const discrete_distribution<ResultType>& lhs, const discrete_distribution<ResultType>& rhs ); (1) template< class ResultType > bool operator!=( const discrete_distribution<ResultType>& lhs, const discrete_distribution<ResultType>& rhs ); (2) Compares two distribution objects. Two distribution objects are equal when parameter values and internal state

std::chrono::system_clock::now

static std::chrono::time_point<std::chrono::system_clock> now(); (since C++11) Returns a time point representing the current point in time. Parameters (none). Return value A time point representing the current time. Exceptions noexcept specification: noexcept Example #include <iostream> #include <vector> #include <numeric> #include <chrono> volatile int sink; int main() { for (auto size = 1ull; size < 1000000000ull; size *= 100) {

std::ostreambuf_iterator::operator++

ostreambuf_iterator& operator++(); ostreambuf_iterator& operator++( int ); Does nothing. These operator overloads are provided to satisfy the requirements of OutputIterator. They make it possible for the expressions *iter++=value and *++iter=value to be used to output (insert) a value into the underlying stream. Parameters (none). Return value *this.

operators (std::uniform_real_distribution)

template< class ResultType > bool operator==( const uniform_real_distribution<ResultType>& lhs, const uniform_real_distribution<ResultType>& rhs ); (1) template< class ResultType > bool operator!=( const uniform_real_distribution<ResultType>& lhs, const uniform_real_distribution<ResultType>& rhs ); (2) Compares two distribution objects. Two distribution objects are equal when parameter values and

std::locale::operators (operator!=)

Defined in header <locale> bool operator==( const locale& other ) const; (1) bool operator!=( const locale& other ) const; (2) Tests two locales for equality. Named locales are considered equal if their names are equal. Unnamed locales are considered equal if they are copies of each other. Parameters other - a std::locale object to compare Return value 1) true if other is a copy of *this or has an identical name, false otherwise. 2) false if othe

std::bernoulli_distribution::max

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

std::hash&lt;std::thread::id&gt;

Defined in header <thread> template<> struct hash<std::thread::id>; (since C++11) The template specialization of std::hash for the std::thread::id class allows users to obtain hashes of the identifiers of threads. Example #include <iostream> #include <thread> #include <chrono> #include <vector> using namespace std::literals::chrono_literals; void foo() { std::this_thread::sleep_for(10ms); } int main() { std::vector<std::