cassert

This header was originally in the C standard library as <assert.h>. This header is part of the error handling library. Macros assert aborts the program if the user-specified condition is not true. May be disabled for release builds (function macro)

std::abs(std::complex)

Defined in header <complex> template< class T > T abs( const complex<T>& z ); Returns the magnitude of the complex number z. Parameters z - complex value Return value If no errors occur, returns the absolute value (also known as norm, modulus, or magnitude) of z. Errors and special cases are handled as if the function is implemented as std::hypot(std::real(z), std::imag(z)). Examples #include <iostream> #include <complex> in

std::gamma_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::condition_variable::native_handle

native_handle_type native_handle(); (since C++11) Accesses the native handle of *this. The meaning and the type of the result of this function is implementation-defined. On a POSIX system, this may be a value of type pthread_cond_t*. On a Windows system, this may be a PCONDITION_VARIABLE. Parameters (none). Return value The native handle of this condition variable. See also native_handle returns the underlying implementation-defined thread handle (public member function of

std::vector::data

T* data(); (since C++11) const T* data() const; (since C++11) Returns pointer to the underlying array serving as element storage. The pointer is such that range [data(); data() + size()) is always a valid range, even if the container is empty. Parameters (none). Return value Pointer to the underlying element storage. For non-empty containers, returns &front(). Complexity Constant. Exceptions noexcept specification: noexcept See also front access the first

std::basic_istream::unget

basic_istream& unget(); Makes the most recently extracted character available again. First clears eofbit. (since C++11) Then the function behaves as UnformattedInputFunction. After constructing and checking the sentry object, if any ios_base::iostate flags are set, the function sets failbit and returns. Otherwise, calls rdbuf()->sungetc(). If rdbuf()->sungetc() returns Traits::eof(), calls setstate(badbit). In any case, sets the gcount() counter to zero. Parameters (non

std::ctime

Defined in header <ctime> char* ctime( const std::time_t* time ); Converts given time since epoch to a calendar local time and then to a textual representation, as if by calling std::asctime(std::localtime(time)). The resulting string has the following format: Www Mmm dd hh:mm:ss yyyy Www - the day of the week (one of Mon, Tue, Wed, Thu, Fri, Sat, Sun). Mmm - the month (one of Jan, Feb, Mar, Apr, May, Jun, Jul, Aug, Sep, Oct, Nov, Dec). dd - the day of the month hh -

std::length_error

Defined in header <stdexcept> class length_error; Defines a type of object to be thrown as exception. It reports errors that are consequence of attempt to exceed implementation defined length limits for some object. This exception is thrown by member functions of std::basic_string and std::vector::reserve. Inheritance diagram. Member functions (constructor) constructs the exception object (public member function) std::length_error::length_error explici

xor

Usage alternative operators: as an alternative for ^

std::unordered_multiset::count

size_type count( const Key& key ) const; (1) (since C++11) Returns the number of elements with key key. Parameters key - key value of the elements to count Return value Number of elements with key key. Complexity linear in the number of elements with key key on average, worst case linear in the size of the container. See also find finds element with specific key (public member function) equal_range returns range of elements matching a specific key (publi