std::basic_ios::good

bool good() const; Returns true if the the most recent I/O operation on the stream completed successfully. Specifically, returns result of rdstate() == 0. See ios_base::iostate for the list of conditions that set the stream status bits. Parameters (none). Return value true if the stream has no errors occurred, false otherwise. Example See also The following table shows the value of basic_ios accessors (good(), fail(), etc.) for all possible combinations of ios_base::iostate

std::slice

Defined in header <valarray> class slice; std::slice is the selector class that identifies a subset of std::valarray similar to BLAS slice. An object of type std::slice holds three values: the starting index, the stride, and the total number of values in the subset. Objects of type std::slice can be used as indexes with valarray's operator[]. Member functions (constructor) constructs a slice (public member function) startsizestride returns the parameters of the

std::flush

Defined in header <ostream> template< class CharT, class Traits > std::basic_ostream<CharT, Traits>& flush( std::basic_ostream<CharT, Traits>& os ); Flushes the output sequence os as if by calling os.flush(). This is an output-only I/O manipulator, it may be called with an expression such as out << std::flush for any out of type std::basic_ostream. Notes This manipulator may be used to produce an incomplete line of output immediately, e.g.

std::get_new_handler

Defined in header <new> std::new_handler get_new_handler(); (since C++11) Returns the currently installed new-handler, which may be a null pointer. This function is thread-safe. Previous call to std::set_new_handler synchronizes-with (see std::memory_order) the subsequent calls to std::get_new_handler. (since C++11) Parameters (none). Return value The currently installed new-handler, which may be a null pointer value. Exceptions noexcept specification: noexcep

std::trunc

Defined in header <cmath> float trunc( float arg ); (1) (since C++11) double trunc( double arg ); (2) (since C++11) long double trunc( long double arg ); (3) (since C++11) double trunc( Integral arg ); (4) (since C++11) 1-3) Computes the nearest integer not greater in magnitude than arg. 4) A set of overloads or a function template accepting an argument of any integral type. Equivalent to 2) (the argument is cast to double). Parameters

LC_ALL

Defined in header <clocale> #define LC_ALL /*implementation defined*/ #define LC_COLLATE /*implementation defined*/ #define LC_CTYPE /*implementation defined*/ #define LC_MONETARY /*implementation defined*/ #define LC_NUMERIC /*implementation defined*/ #define LC_TIME /*implementation defined*/ Each of the above macro constants expand to integer constant expressions with distinct values that are suitable for use as the first argum

std::chrono::duration_cast

template <class ToDuration, class Rep, class Period> constexpr ToDuration duration_cast(const duration<Rep,Period>& d); (since C++11) Converts a std::chrono::duration to a duration of different type ToDuration. No implicit conversions are used. Multiplications and divisions are avoided where possible, if it is known at compile time that one or more parameters are 1. Computations are done in the widest type available and converted, as if by static_cast, to the result type

Logical operators

Returns the result of a boolean operation. Operator name Syntax Over​load​able Prototype examples (for class T) Inside class definition Outside class definition negation not a !a. Yes bool T::operator!() const; bool operator!(const T &a); AND a and b a && b. Yes bool T::operator&&(const T2 &b) const; bool operator&&(const T &a, const T2 &b); inclusive OR a or b a || b. Yes bool T::operator||(const T2 &b) const; bo

std::printf

Defined in header <cstdio> int printf( const char* format, ... ); (1) int fprintf( std::FILE* stream, const char* format, ... ); (2) int sprintf( char* buffer, const char* format, ... ); (3) int snprintf( char* buffer, std::size_t buf_size, const char* format, ... ); (4) (since C++11) Loads the data from the given locations, converts them to character string equivalents and writes the results to a variety of sinks. 1) Writes the results to stdout. 2) Wri

ctgmath

This header was originally in the C standard library as <tgmath.h>. This header is part of the numeric library. Includes <ccomplex> <cmath>