std::cauchy_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::set::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::set<int>: #include <set> #include <iostream> int main() { std::set<int> nums

std::nullptr_t

Defined in header <cstddef> typedef decltype(nullptr) nullptr_t; (since C++11) std::nullptr_t is the type of the null pointer literal, nullptr. It is a distinct type that is not itself a pointer type or a pointer to member type. Example If two or more overloads accept different pointer types, an overload for std::nullptr_t is necessary to accept a null pointer argument. #include <cstddef> #include <iostream> void f(int* pi) { std::cout << "Pointer

std::shared_timed_mutex::try_lock_shared_for

template< class Rep, class Period > bool try_lock_shared_for( const std::chrono::duration<Rep,Period>& timeout_duration ); (since C++14) Tries to lock the mutex in shared mode. Blocks until specified timeout_duration has elapsed or the shared lock is acquired, whichever comes first. On successful lock acquisition returns true, otherwise returns false. If timeout_duration is less or equal timeout_duration.zero(), the function behaves like try_lock_shared(). A steady clock

std::numeric_limits::is_specialized

static const bool is_specialized; (until C++11) static constexpr bool is_specialized; (since C++11) The value of std::numeric_limits<T>::is_specialized is true for all T for which there exists a specialization of std::numeric_limits. Standard specializations T value of std::numeric_limits<T>::is_specialized /* non-specialized */ false bool true char true signed char true unsigned char true wchar_t true char16_t true char32_t true

std::time

Defined in header <ctime> std::time_t time( std::time_t* arg ); Returns the current calendar time encoded as a std::time_t object, and also stores it in the object pointed to by arg, unless arg is a null pointer. Parameters arg - pointer to a std::time_t object to store the time, or a null pointer Return value Current calendar time encoded as std::time_t object on success, (std::time_t)(-1) on error. If arg is not null, the return value is also stored in the o

operators (std::function)

template< class R, class... ArgTypes > bool operator==( const std::function<R(ArgTypes...)>& f, std::nullptr_t ); (1) (since C++11) template< class R, class... ArgTypes > bool operator==( std::nullptr_t, const std::function<R(ArgTypes...)>& f ); (2) (since C++11) template< class R, class... ArgTypes > bool operator!=( const std::function<R(ArgTypes...)>& f, std::nullptr_t ); (3) (since C++11) template< class R, class... ArgTy

std::queue::back

reference back(); const_reference back() const; Returns reference to the last element in the queue. This is the most recently pushed element. Effectively calls c.back(). Parameters (none). Return value reference to the last element. Complexity Constant. See also front access the first element (public member function) push inserts element at the end (public member function)

std::dynarray::operator[]

reference operator[]( size_type pos ); (since {std}) const_reference operator[]( size_type pos ) const; (since {std}) Returns a reference to the element at specified location pos. No bounds checking is performed. Parameters pos - position of the element to return Return value Reference to the requested element. Complexity Constant. Notes Unlike std::map::operator[], this operator never inserts a new element into the container. Example The following co

operators (std::normal_distribution)

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