operators (std::time_point)

(1) template< class Clock, class Dur1, class Dur2 > bool operator==( const time_point<Clock,Dur1>& lhs, const time_point<Clock,Dur2>& rhs ); (since C++11) (until C++14) template< class Clock, class Dur1, class Dur2 > constexpr bool operator==( const time_point<Clock,Dur1>& lhs, const time_point<Clock,Dur2>& rhs ); (since C++14) (2) template< class Clock, class Dur1, class Dur2 >

std::bernoulli_distribution::p

double p() const; (since C++11) Returns the p parameter the distribution was constructed with. It defines the probability of generating true. The default value is 0.5. Parameters (none). Return value Floating point value identifying the p distribution parameter. See also param gets or sets the distribution parameter object (public member function)

std::array::operator[]

reference operator[]( size_type pos ); (since C++11) const_reference operator[]( size_type pos ) const; (since C++11) (until C++14) constexpr const_reference operator[]( size_type pos ) const; (since C++14) 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::operato

std::atomic_load

Defined in header <atomic> (1) (since C++11) template< class T > T atomic_load( const std::atomic<T>* obj ); template< class T > T atomic_load( const volatile std::atomic<T>* obj ); (2) (since C++11) template< class T > T atomic_load_explicit( const std::atomic<T>* obj, std::memory_order order ); template< class T > T atomic_load_explicit( const volatile std::atomic<T>* obj,

std::cin

Defined in header <iostream> extern std::istream cin; (1) extern std::wistream wcin; (2) The global objects std::cin and std::wcin control input from a stream buffer of implementation-defined type (derived from std::streambuf), associated with the standard C input stream stdin. These objects are guaranteed to be constructed before the first constructor of a static object is called and they are guaranteed to outlive the last destructor of a static object, so that it is

std::ferror

Defined in header <cstdio> int ferror( std::FILE* stream ); Checks the given stream for errors. Parameters stream - the file stream to check Return value Nonzero value if the file stream has errors occurred, ​0​ otherwise. Example #include <cstdio> #include <cstdlib> int main() { FILE* fp = std::fopen("test.txt", "r"); if(!fp) { std::perror("File opening failed"); return EXIT_FAILURE; } int c; // note: int,

std::abs(int)

Defined in header <cstdlib> int abs( int n ); long abs( long n ); long long abs( long long n ); (since C++11) long labs( long n ); long long llabs( long long n ); (since C++11) Defined in header <cinttypes> std::intmax_t abs( std::intmax_t n ); (since C++11) std::intmax_t imaxabs( std::intmax_t n ); (since C++11) Computes the absolute value of an integer number. The behavior is undefined if the result cannot

std::exp(std::complex)

Defined in header <complex> template< class T > complex<T> exp( const complex<T>& z ); Compute base-e exponential of z, that is e (Euler's number, 2.7182818) raised to the z power. Parameters z - complex value Return value If no errors occur, e raised to the power of z, ez, is returned. Error handling and special values Errors are reported consistent with math_errhandling. If the implementation supports IEEE floating-point arithmetic,

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