continue

Usage continue statement: as the declaration of the statement

Copy assignment operator

A copy assignment operator of class T is a non-template non-static member function with the name operator= that takes exactly one parameter of type T, T&, const T&, volatile T&, or const volatile T&. For a type to be CopyAssignable, it must have a public copy assignment operator. Syntax class_name & class_name :: operator= ( class_name ) (1) class_name & class_name :: operator= ( const class_name & ) (2) class_name & class_name :: operator= ( cons

Containers library

The Containers library is a generic collection of class templates and algorithms that allow programmers to easily implement common data structures like queues, lists and stacks. There are three classes of containers -- sequence containers, associative containers, and unordered associative containers -- each of which is designed to support a different set of operations. The container manages the storage space that is allocated for its elements and provides member functions to access them, either

Container

A Container is an object used to store other objects and taking care of the management of the memory used by the objects it contains. Requirements C Container type T Element type a, b Objects of type C Types name type notes value_type T Eraseable reference T& const_reference const T& iterator iterator pointing to T ForwardIteratorconvertible to const_iterator const_iterator const iterator pointing to T ForwardIterator difference_type signed integer must be the

const_cast conversion

Converts between types with different cv-qualification. Syntax const_cast < new_type > ( expression ) Returns a value of type new_type. Explanation Only the following conversions can be done with const_cast. In particular, only const_cast may be used to cast away (remove) constness or volatility. 1) Two possibly multilevel pointers to the same type may be converted between each other, regardless of cv-qualifiers at each level. 2) lvalue of any type T may be converted to a

const_cast

Usage const_cast type conversion expression: as the declaration of the expression

Constraints and concepts

This page describes an experimental core language feature. For named type requirements used in the specification of the standard library, see library concepts. Class templates, function templates, and non-template functions (typically members of class templates) may be associated with a constraint, which specifies the requirements on template arguments, which can be used to select the most appropriate function overloads and template specializations. Constraints may also be used to limit automat

Constructors and member initializer lists

Constructor is a special non-static member function of a class that is used to initialize objects of its class type. In the definition of a constructor of a class, member initializer list specifies the initializers for direct and virtual base subobjects and non-static data members. ( Not to be confused with std::initializer_list ). Syntax Constructors are declared using member function declarators of the following form: class-name ( parameter-list(optional) ) except-spec(optional) attr(opti

constexpr

Usage constexpr declaration specifier (since C++11)

constant initialization

Sets the initial values of the static constants. Syntax static T & ref = constexpr; (1) static T object = constexpr; (2) Explanation Constant initialization is performed after (until C++14)instead of (since C++14) zero initialization of the static and thread-local objects and before all other initialization. Only the following variables are constant initialized: 1) Static or thread-local references, if it is bound to static glvalue, to a temporary object (or its subobje