deque

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

delete expression

Destructs object(s) previously allocated by the new expression and releases obtained memory area. Syntax ::(optional) delete    expression (1) ::(optional) delete [] expression (2) 1) Destroys one non-array object created by a new-expression 2) Destroys an array created by a new[]-expression Explanation For the first (non-array) form, expression must be a pointer to a complete object type or a class type contextually implicitly convertible to such pointer, and its value

Definitions and ODR

Definitions are declarations that fully define the entity introduced by the declaration. Every declaration is a definition, except for the following: Any declaration with an extern storage class specifier or with a language linkage specifier (such as extern "C") without an initializer extern const int a; // declares, but doesn't define a extern const int b = 1; // defines b A function declaration without a function body int f(int); // declares, but doesn't define f A parameter declaratio

delete

Usage delete expression allocation functions as the name of operator-like functions deleted functions (since C++11)

DefaultConstructible

Specifies that an instance of the type can be default constructed. Requirements The type T satisfies DefaultConstructible if. Given. u, an arbitrary identifier The following expressions must be valid and have their specified effects. Expression Post-conditions T u The object u is default-initialized T u{} The object u is value-initialized or aggregate-initialized. T() T{} A temporary object of type T is value-initialized or aggregate-initialized. Notes For objects of non

DefaultInsertable

Specifies that an instance of the type can be default-constructed in-place by a given allocator. Requirements The type T is DefaultInsertable into the Container X whose value_type is identical to T if, given. A an allocator type m an lvalue of type A p the pointer of type T* prepared by the container where X::allocator_type is identical to std::allocator_traits<A>::rebind_alloc<T>, the following expression is well-formed: std::allocator_traits<A>::construct(m,

Default arguments

Allows a function to be called without providing one or more trailing arguments. Indicated by using the following syntax for a parameter in the parameter-list of a function declaration. attr(optional) decl-specifier-seq declarator = initializer (1) attr(optional) decl-specifier-seq abstract-declarator(optional) = initializer (2) Default arguments are used in place of the missing trailing arguments in a function call: void point(int x = 3, int y = 4); point(1,2); // calls point

default initialization

This is the initialization performed when a variable is constructed with no initializer. Syntax T object ; (1) new T ; new T ( ) ; (until c++03). (2) Explanation Default initialization is performed in three situations: 1) when a variable with automatic, static, or thread-local storage duration is declared with no initializer. 2) when an object with dynamic storage duration is created by a new-expression with no initializer or when an object is created by a new-expression

Default constructors

A default constructor is a constructor which can be called with no arguments (either defined with an empty parameter list, or with default arguments provided for every parameter). A type with a public default constructor is DefaultConstructible. Syntax ClassName ( ) ; (1) ClassName :: ClassName ( ) body (2) ClassName() = delete ; (3) (since C++11) ClassName() = default ; (4) (since C++11) Explanation 1) Declaration of a default constructor. 2) Definition of the

decltype specifier

Inspects the declared type of an entity or queries the type and value category of an expression. Syntax decltype ( entity ) (1) (since C++11) decltype ( expression ) (2) (since C++11) Explanation 1) If the argument is an unparenthesized id-expression or an unparenthesized class member access, then decltype yields the type of the entity named by this expression. If there is no such entity, or if the argument names a set of overloaded functions, the program is ill-formed. 2)