continue statement

Causes the remaining portion of the enclosing for, range-for, while or do-while loop body skipped. Used when it is otherwise awkward to ignore the remaining portion of the loop using conditional statements. Syntax attr(optional) continue ; Explanation The continue statement causes a jump, as if by goto to the end of the loop body (it may only appear within the loop body of for, range-for, while, and do-while loops). More precisely, For while loop, it acts as. while (/* ... */) {

continue

Usage continue statement: as the declaration of the statement

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

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

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

constexpr specifier

constexpr - specifies that the value of a variable or function can appear in constant expressions Explanation The constexpr specifier declares that it is possible to evaluate the value of the function or variable at compile time. Such variables and functions can then be used where only compile time constant expressions are allowed (provided that appropriate function arguments are given). A constexpr specifier used in an object declaration implies const. A constexpr specifier used in a fun

constexpr

Usage constexpr declaration specifier (since C++11)