Compare

The concept Compare is a set of requirements expected by some of the standard library facilities from the user-provided function object types. The return value of the function call operation applied to an object of type Compare, when contextually converted to bool, yields true if the first argument of the call appears before the second in the strict weak ordering relation induced by this Compare type, and false otherwise. As with any BinaryPredicate, evaluation of that expression is not allowed

Common mathematical functions

Functions Defined in header <cstdlib> abs(int)labsllabs (C++11) computes absolute value of an integral value (|x|) (function) div(int)ldivlldiv (C++11) computes quotient and remainder of integer division (function) Defined in header <cinttypes> abs(std::intmax_t)imaxabs (C++11)(C++11) computes absolute value of an integral value (|x|) (function) div(std::intmax_t)imaxdiv (C++11)(C++11) computes quotient and remainder of integer division (function)

Comments

Comments serve as a sort of in-code documentation. When inserted into a program, they are effectively ignored by the compiler; they are solely intended to be used as notes by the humans that read source code. Although specific documentation is not part of the C++ standard, several utilities exist that parse comments with different documentation formats. Syntax /* comment */ (1) // comment\n (2) 1) Often known as "C-style" or "multi-line" comments. 2) Often known as "C++-style

codecvt

This header is part of the Localization library. Classes codecvt_utf8 (C++11) converts between UTF-8 and UCS2/UCS4 (class template) codecvt_utf16 (C++11) converts between UTF-16 and UCS2/UCS4 (class template) codecvt_utf8_utf16 (C++11) converts between UTF-8 and UTF-16 (class template) codecvt_mode (C++11) tags to alter behavior of the standard codecvt facets (enum) Synopsis namespace std { enum codecvt_mode { consume_header = 4, generat

cmath

This header was originally in the C standard library as <math.h>. This header is part of the numeric library. Macro constants HUGE_VALFHUGE_VALHUGE_VALL (C++11)(C++11) indicates the overflow value for float, double and long double respectively (macro constant) INFINITY (C++11) evaluates to positive infinity or the value guaranteed to overflow a float (macro constant) NAN (C++11) evaluates to a quiet NaN of type float (macro constant) math_errhandlingMATH_ERRNOMA

CLOCKS_PER_SEC

Defined in header <ctime> #define CLOCKS_PER_SEC /*implementation defined*/ Expands to an expression (not necessarily a compile-time constant) of type std::clock_t equal to the number of clock ticks per second, as returned by std::clock(). Notes POSIX defines CLOCKS_PER_SEC as one million, regardless of the actual precision of std::clock(). See also clock returns raw processor clock time since the program is started (function) clock_t process running time (ty

Clock

The Clock concept describes a bundle consisting of a std::chrono::duration, a std::chrono::time_point, and a function now() to get the current time_point. The origin of the clock's time_point is referred to as the clock's epoch. Requirements C1 and C2 denote clock types. t1 and t2 are values returned by C1::now() where the call returning t1 happens before the call returning t2 and both of these calls occur before C1::time_point::max(). Expression Return type Operational semantics C1::rep

clocale

This header was originally in the C standard library as <locale.h>. This header is part of the localization library. Types lconv formatting details, returned by std::localeconv (class) Constants NULL implementation-defined null pointer constant (macro constant) LC_ALLLC_COLLATELC_CTYPELC_MONETARYLC_NUMERICLC_TIME locale categories for std::setlocale (macro constant) Functions setlocale gets and sets the current C locale (function) localeconv queries

climits

This header was originally in the C standard library as <limits.h>. This header is part of the type support library, in particular it's part of the C numeric limits interface. Macros CHAR_BIT number of bits in byte (macro constant) MB_LEN_MAX maximum number of bytes in a multibyte character (macro constant) CHAR_MIN minimum value of char (macro constant) CHAR_MAX maximum value of char (macro constant) SCHAR_MINSHRT_MININT_MINLONG_MINLLONG_MIN (C++11) minimum value

Classes

A class is a user-defined type. A class type is defined by class-specifier, which appears in decl-specifier-seq of the declaration syntax. The class specifier has the following syntax: class-key attr class-head-name base-clause { member-specification } (1) class-key - one of class, struct, union attr(C++11) - optional sequence of any number of attributes class-head-name - the name of the class that's being defined. Optionally prepended by nested-name-specifier (sequen