std::map::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::map<int, int> contains any elements: #include <map> #include <iostream> #include <utility> int main() { std::ma

std::set_unexpected

Defined in header <exception> std::unexpected_handler set_unexpected( std::unexpected_handler f ); (deprecated since C++11) Makes f the new global std::unexpected_handler and returns the previously installed std::unexpected_handler. This function is thread-safe. Every call to std::set_unexpected synchronizes-with (see std::memory_order) the subsequent calls to std::set_unexpected and std::get_unexpected. (since C++11) Parameters f - pointer to function of type s

std::scoped_allocator_adaptor::outer_allocator

Defined in header <scoped_allocator> outer_allocator_type& outer_allocator(); (1) (since C++11) const outer_allocator_type& outer_allocator() const; (2) (since C++11) Obtains a reference to the outer allocator used to declare this class. 1) returns static_cast<OuterAlloc&>(*this). 2) returns static_cast<const OuterAlloc&>(*this). Parameters (none). Return value A reference to OuterAlloc. Exceptions 1-2) noexcept specification: n

std::uniform_real_distribution::uniform_real_distribution

explicit uniform_real_distribution( RealType a = 0.0, RealType b = 1.0 ); (1) (since C++11) explicit uniform_real_distribution( const param_type& params ); (2) (since C++11) Constructs new distribution object. The first version uses a and b as the distribution parameters, the second version uses params as the distribution parameters. Parameters a - the a distribution parameter (minimum value) b - the b distribution parameter (maximum value) params - the dis

std::is_floating_point

Defined in header <type_traits> template< class T > struct is_floating_point; (since C++11) Checks whether T is a floating-point type. Provides the member constant value which is equal to true, if T is the type float, double, long double, including any cv-qualified variants. Otherwise, value is equal to false. Template parameters T - a type to check Helper variable template template< class T > constexpr bool is_floating_point_v = is_floating_poi

std::unordered_multimap::swap

void swap( unordered_multimap& other ); (since C++11) 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 Hash and KeyEqual objects must be Swappable, and they are exchanged using unqualified calls to non-member swap. If std::allocator_traits<allocator_type>::propagate_on_container_swap::value is true, the

operators (std::complex)

Defined in header <complex> template< class T > bool operator==( const complex<T>& lhs, const complex<T>& rhs); (1) (until C++14) template< class T > constexpr bool operator==( const complex<T>& lhs, const complex<T>& rhs); (1) (since C++14) template< class T > bool operator==( const complex<T>& lhs, const T& rhs); (2) (until C++14) template< class T > constexpr bool operator==( const c

TrivialClock

The TrivialClock concept describes the requirements satisfied by all the clocks in the chrono library. Requirements For a type TC: The type must meet Clock requirements. The types TC::rep, TC::duration, and TC::time_point satisfy the requirements of EqualityComparable, LessThanComparable, DefaultConstructible, CopyConstructible, CopyAssignable, Destructible, and NumericType. lvalues of the types TC::rep, TC::duration, and TC::time_point are Swappable. The function TC::now() does not t

std::subtract_with_carry_engine::max

static constexpr result_type max(); (since C++11) Returns the maximum value potentially generated by the random-number engine. This value is equal to 2w - 1, where w is word_size. Parameters (none). Return value The maximum potentially generated value. Complexity Constant. See also min [static] gets the smallest possible value in the output range (public static member function)

std::subtract_with_carry_engine::min

static constexpr result_type min(); (since C++11) Returns the minimum value potentially generated by the random-number engine. This value is equal to 0u. Parameters (none). Return value The minimum potentially generated value. Complexity Constant. See also max [static] gets the largest possible value in the output range (public static member function)