[ Web Proxy ]
URL:
Viewing: https://fr.cppreference.com/cpp/container/stack/swap [Back]  [Original]

std::stack::swap cppreference.com
cppreference.com
Espaces de noms
Variantes

std::stack::swap

De cppreference.com

<metanoindex/>

 
 
 
std :: pile
Les fonctions membres
Original:
Member functions
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
stack::stack
stack::~stack
stack::operator=
Elment d'accs
Original:
Element access
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
stack::top
Capacit
Original:
Capacity
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
stack::empty
stack::size
Modificateurs
Original:
Modifiers
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
stack::push
stack::emplace
stack::pop
stack::swap
 
<tbody> </tbody>
void swap( const stack<T, Container>& other );
changes le contenu de l'adaptateur de rservoir avec ceux de other. Effectively calls using std::swap; swap(c, other.c);
Original:
Exchanges the contents of the container adaptor with those of other. Effectively calls using std::swap; swap(c, other.c);
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

Paramtres

other -
Adaptateur rcipient changer avec le contenu
Original:
container adaptor to exchange the contents with
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

Retourne la valeur

(Aucun)
Original:
(none)
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

Complexit

Idem conteneur sous-jacent (linaire si Container est std :: array, constante contraire)
Original:
Same as underlying container (linear if Container is std :: array, constant otherwise)
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

Voir aussi

l'algorithme spcialis std::swap
Original:
specializes the std::swap algorithm
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(fonction gnrique) [edit]

Web Proxy Viewer  |  New URL  |  Original Page