<utility> Members

Reference

Classes

tuple_element

A class that wraps the type of a pair element.

tuple_size

A class that wraps pair element count.

Functions

forward

Preserves the reference type (either lvalue or rvalue) of the argument from being obscured by perfect forwarding.

get

A function that gets an element from a pair object.

make_pair

A template helper function used to construct objects of type pair, where the component types are based on the data types passed as parameters.

move

Returns the passed in argument as an rvalue reference.

swap

Exchanges the elements of two pair objects.

Operators

operator!=

Tests if the pair object on the left side of the operator is not equal to the pair object on the right side.

operator==

Tests if the pair object on the left side of the operator is equal to the pair object on the right side.

operator<

Tests if the pair object on the left side of the operator is less than the pair object on the right side.

operator<=

Tests if the pair object on the left side of the operator is less than or equal to the pair object on the right side.

operator>

Tests if the pair object on the left side of the operator is greater than the pair object on the right side.

operator>=

Tests if the pair object on the left side of the operator is greater than or equal to the pair object on the right side.

Structs

identity

pair

A type that provides for the ability to treat two objects as a single object.

See Also

Reference

<utility>

Thread Safety in the Standard C++ Library

Change History

Date

History

Reason

August 2010

Added TR1 extensions information.

Information enhancement.