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

Lockable

The Lockable concept extends the BasicLockable concept to include attempted locking. Requirements BasicLockable For type L to be Lockable, it must meet the above condition as well as the following: Expression Effects Return value m.try_lock() Attempts to acquire the lock for the current execution agent without blocking. If an exception is thrown, no lock is obtained. true if the lock was acquired, false otherwise See also Thread support library Mutex BasicLockable TimedL

Localization library

The locale facility includes internationalization support for character classification and string collation, numeric, monetary, and date/time formatting and parsing, and message retrieval. Locale settings control the behavior of stream I/O, regular expression library, and other components of the C++ standard library. Locales Defined in header <locale> Locales and facets locale set of polymorphic facets that encapsulate cultural differences (class) use_facet obtains

locale

This header is part of the localization library. Classes locale set of polymorphic facets that encapsulate cultural differences (class) String and stream conversions wstring_convert (C++11) performs conversions between a wide string and a byte string (class template) wbuffer_convert (C++11) performs conversion between a byte stream buffer and a wide stream buffer (class template) Facet category base classes ctype_base defines character classification ca

LiteralType

Specifies that a type is a literal type. Literal types are the types of constexpr variables and they can be constructed, manipulated, and returned from constexpr functions. Note, that the standard doesn't define a named requirement or concept with this name. This is a type category defined by the core language. It is included here as concept only for consistency. Requirements A literal type is any of the following: possibly cv-qualified (since C++17) void (so that constexpr functions can r

list initialization

Initializes an object from braced-init-list. Syntax direct-list-initialization T object { arg1, arg2, ... }; (1) T { arg1, arg2, ... }; (2) new T { arg1, arg2, ... } (3) Class { T member { arg1, arg2, ... }; }; (4) Class::Class() : member{arg1, arg2, ...} {... (5) copy-list-initialization T object = {arg1, arg2, ...}; (6) function( { arg1, arg2, ... } ) ; (7) return { arg1, arg2, ... } ; (8) object[ { arg1, arg2, ... } ] ; (9

list

This header is part of the containers library. Classes list doubly-linked list (class template) Functions operator==operator!=operator<operator<=operator>operator>= lexicographically compares the values in the list (function template) std::swap(std::list) specializes the std::swap algorithm (function template) Synopsis namespace std { #include <initializer_list> template <class T, class Allocator = allocator<T> > class list; templ

limits

This header is part of the type support library. Declarations numeric_limits provides an interface to query properties of all fundamental numeric types. (class template) float_round_style indicates floating-point rounding modes (enum) float_denorm_style indicates floating-point denormalization modes (enum) Synopsis namespace std { template<class T> class numeric_limits; enum float_round_style { round_indeterminate = -1, round_toward

Library Concepts

Concept is a term that describes a named set of requirements for a type. Formal specification of concepts (ISO/IEC TS 19217:2015) is an experimental technical specification, which makes it possible to verify that template arguments satisfy the expectations of a template or function during overload resolution and template specialization. The library concepts listed on this page are the named requirements used in the normative text of the C++ standard to define the expectations of the standard li

LessThanComparable

The type must work with < operator and the result should have standard semantics. Requirements The type T satisfies LessThanComparable if. Given. a, b, and c, expressions of type T or const T The following expressions must be valid and have their specified effects. Expression Return type Requirements a < b implicitly convertible to bool Establishes strict weak ordering relation with the following properties For all a, !(a < a) If a < b then !(b < a) if a < b a