goto statement

Transfers control unconditionally. Used when it is otherwise impossible to transfer control to the desired location using other statements. Syntax attr(optional) goto label ; Explanation The goto statement transfers control to the location specified by label. The goto statement must be in the same function as the label it is referring, it may appear before or after the label. If transfer of control exits the scope of any automatic variables (e.g. by jumping backwards to a point be

goto

Usage goto statement: as the declaration of the statement

future

This header is part of the thread support library. Classes promise (C++11) stores a value for asynchronous retrieval (class template) packaged_task (C++11) packages a function to store its return value for asynchronous retrieval (class template) future (C++11) waits for a value that is set asynchronously (class template) shared_future (C++11) waits for a value (possibly referenced by other futures) that is set asynchronously (class template) launch (C++11)

Fundamental types

(See also type for type system overview and the list of type-related utilities that are provided by the C++ library). Void type void - type with an empty set of values. It is an incomplete type that cannot be completed (consequently, objects of type void are disallowed). There are no arrays of void, nor references to void. However, pointers to void and functions returning type void (procedures in other languages) are permitted. std::nullptr_t Boolean type bool - type, capable of

Functions

Functions are C++ entities that associate a sequence of statements (a function body) with a name and a list of zero or more function parameters. // function name: "isodd" // parameter list has one parameter, with name "n" and type int // the return type is bool bool isodd(int n) { // the body of the function begins return n % 2; } // the body of the function ends When a function is invoked, e.g. in a function-call expression, the parameters are init

FunctionObject

A FunctionObject type is the type of an object that can be used on the left of the function call operator. Requirements The type T satisfies FunctionObject if. The type T satisfies std::is_object, and Given. f, a value of type T or const T args, suitable argument list, which may be empty The following expressions must be valid: Expression Requirements f(args) performs a function call Notes Functions and references to functions are not function object types, but can be used

functional

This header is part of the function objects library and provides the standard hash function. Namespaces placeholders Defines placeholders for the unbound arguments in a std::bind expression Constants Defined in namespace std::placeholders _1, _2, _3, _4, ... (C++11) placeholders for the unbound arguments in a std::bind expression (constant) Classes function (C++11) wraps callable object of any type with specified function call signature (class template) mem

Function-try-block

Establishes an exception handler around the body of a function. Syntax The function-try-block is one of the alternative syntax forms for function-body, which is a part of function definition. try ctor-initializer(optional) compound-statement handler-sequence ctor-initializer - member initializer list, only allowed in constructors compound-statement - the brace-enclosed sequence of statements that constututes the body of a function handler-sequence - sequence of one o

Function template

A function template defines a family of functions. Syntax template < parameter-list > function-declaration (1) export template < parameter-list > function-declaration (2) (until C++11) function-declaration-with-placeholders (3) (concepts TS) Explanation function-declaration - a function declaration. The function name declared become a template name. function-declaration-with-placeholders - a function declaration where the type of at least one par

Function objects

A function object is any object for which the function call operator is defined. C++ provides many built-in function objects as well as support for creation and manipulation of new function objects. Polymorphic function wrappers std::function provides support for storing arbitrary function objects. function (C++11) wraps callable object of any type with specified function call signature (class template) mem_fn (C++11) creates a function object out of a pointer to a member (funct