Export (0) Print
Expand All

tuple:swap

Exchanges the elements of two tuples.

template<class... Types>
    void swap(tuple<Types...&> left,
        tuple<Types...&> right);

Parameter

Description

left

A tuple whose elements are to be exchanged with those of the tuple right.

right

A tuple whose elements are to be exchanged with those of the tuple left.

The function executes left.swap(right).

Header: <tuple>

Namespace: std

Community Additions

ADD
Show:
© 2015 Microsoft