std::chrono::duration::operators (unary)

constexpr duration operator+() const; (1) constexpr duration operator-() const; (2) Implements unary plus and unary minus for the durations. If rep_ is a member variable holding the number of ticks in a duration object, 1) Equivalent to return *this; 2) Equivalent to return duration(-rep_); Parameters (none). Return value 1) a copy of this duration object 2) a copy of this duration object, with the number of ticks negated Example #include <chrono> #include &

std::packaged_task::get_future

std::future<R> get_future(); (since C++11) Returns a future which shares the same shared state as *this. get_future can be called only once for each packaged_task. Parameters (none). Return value A future which shares the same shared state as *this. Exceptions std::future_error on the following error conditions: The shared state has already been retrieved via a call to get_future. The error category is set to future_already_retrieved. *this has no shared state. The err

std::basic_istream::peek

int_type peek(); Behaves as UnformattedInputFunction. After constructing and testing the sentry object, reads the next character from the input stream without extracting it. Parameters (none). Return value If good() == true, returns the next character as obtained by rdbuf()->sgetc(). Otherwise, returns Traits::eof(). Exceptions failure if an error occurred (the error state flag is not goodbit) and exceptions() is set to throw for that state. If an internal operation throw

std::allocator::allocate

pointer allocate( size_type n, std::allocator<void>::const_pointer hint = 0 ); Allocates n * sizeof(T) bytes of uninitialized storage by calling ::operator new(std::size_t), but it is unspecified when and how this function is called. The pointer hint may be used to provide locality of reference: the allocator, if supported by the implementation, will attempt to allocate the new memory block as close as possible to hint. Parameters n - the number of objects to allocate stor

operators (std::match_results)

Defined in header <regex> template< class BidirIt, class Alloc > bool operator==( match_results<BidirIt,Alloc>& lhs, match_results<BidirIt,Alloc>& rhs ); (1) (since C++11) template< class BidirIt, class Alloc > bool operator!=( match_results<BidirIt,Alloc>& lhs, match_results<BidirIt,Alloc>& rhs ); (2) (since C++11) Compares two match_results objects. Two match_results are equal if t

operators (std::geometric_distribution)

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

operators (std::student_t_distribution)

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

std::numeric_limits::has_quiet_NaN

static const bool has_quiet_NaN; (until C++11) static constexpr bool has_quiet_NaN; (since C++11) The value of std::numeric_limits<T>::has_quiet_NaN is true for all types T capable of representing the special value "Quiet Not-A-Number". This constant is meaningful for all floating-point types and is guaranteed to be true if std::numeric_limits<T>::is_iec559 == true. Standard specializations T value of std::numeric_limits<T>::has_quiet_NaN /* non-specializ

std::shared_timed_mutex::try_lock

bool try_lock(); (since C++14) Tries to lock the mutex. Returns immediately. On successful lock acquisition returns true, otherwise returns false. This function is allowed to fail spuriously and return false even if the mutex is not currently locked by any other thread. If try_lock is called by a thread that already owns the mutex in any mode (shared or exclusive), the behavior is undefined. Prior unlock() operation on the same mutex synchronizes-with (as defined in std::memory_order) t

operators (std::weibull_distribution)

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