std::cos(std::complex)

Defined in header <complex> template< class T > complex<T> cos( const complex<T>& z ); Computes complex cosine of a complex value z. Parameters z - complex value Return value If no errors occur, the complex cosine of z is returned. Errors and special cases are handled as if the operation is implemented by std::cosh(i*z), where i is the imaginary unit. Notes The cosine is an entire function on the complex plane, and has no branch cuts.

errno

Defined in header <cerrno> #define errno /*implementation-defined*/ errno is a preprocessor macro used for error indication. It expands to a static modifiable lvalue of type int. (until C++11) It expands to a thread-local modifiable lvalue of type int. (since C++11) Several standard library functions indicate errors by writing positive integers to errno. Typically, the value of errno is set to one of the error codes, listed in <cerrno> as macro constants that begi

std::forward_list::reverse

void reverse(); (since C++11) Reverses the order of the elements in the container. No references or iterators become invalidated. Parameters (none). Return value (none). Example #include <iostream> #include <forward_list> std::ostream& operator<<(std::ostream& ostr, const std::forward_list<int>& list) { for (auto &i : list) { ostr << " " << i; } return ostr; } int main() { std::forward_list<int

std::bad_exception::what

virtual const char* what() const; Returns the explanatory string. Parameters (none). Return value Pointer to a null-terminated string with explanatory information. Exceptions noexcept specification: noexcept

std::basic_ostream::tellp

pos_type tellp(); Returns the output position indicator of the current associated streambuf object. Behaves as UnformattedOutputFunction (except without actually performing output). After constructing and checking the sentry object, (since C++11) If fail()==true, returns pos_type(-1). Otherwise, returns rdbuf()->pubseekoff(0, std::ios_base::cur, std::ios_base::out). Parameters (none). Return value current output position indicator on success, pos_type(-1) if a failure occur

std::multimap::upper_bound

iterator upper_bound( const Key& key ); (1) const_iterator upper_bound( const Key& key ) const; (1) template< class K > iterator upper_bound( const K& x ); (2) (since C++14) template< class K > const_iterator upper_bound( const K& x ) const; (2) (since C++14) 1) Returns an iterator pointing to the first element that is greater than key. 2) Returns an iterator pointing to the first element that compares greater to the value x. This overlo

std::chrono::high_resolution_clock::now

static std::chrono::time_point<std::chrono::high_resolution_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 *=

SIGTERM

Defined in header <csignal> #define SIGTERM /*implementation defined*/ #define SIGSEGV /*implementation defined*/ #define SIGINT /*implementation defined*/ #define SIGILL /*implementation defined*/ #define SIGABRT /*implementation defined*/ #define SIGFPE /*implementation defined*/ Each of the above macro constants expands to an integer constant expression with distinct values, which represent different signals sent to the program. Constant

std::imag(std::complex)

Defined in header <complex> template< class T > T imag( const complex<T>& z ); (1) (until C++14) template< class T > constexpr T imag( const complex<T>& z ); (1) (since C++14) long double imag( long double z ); (2) (since C++11) template< class DoubleOrIngeter > double imag( DoubleOrInteger z ); (3) (since C++11) float imag( float z ); (4) (since C++11) Returns the imaginary component of the complex number z, i

switch

Usage switch statement: as the declaration of the statement