[ Web Proxy ]
URL:
Viewing: https://fr.cppreference.com/cpp/concept/MoveAssignable [Back]  [Original]

<div class="t-tr-text">Concepts C + +:<div class="t-tr-dropdown"><div><div><div class="t-tr-dropdown-arrow-border"></div><div class="t-tr-dropdown-arrow"></div><div class="t-tr-dropdown-h">Original:</div><div class="t-tr-dropdown-orig">C++ concepts:</div><div class="t-tr-dropdown-notes">The text has been machine-translated via [http://translate.google.com Google Translate].<br/> You can help to correct and verify the translation. Click [http://en.cppreference.com/w/Cppreference:MachineTranslations here] for instructions.</div></div></div></div></div> MoveAssignable (depuis C++11) cppreference.com
cppreference.com
Espaces de noms
Variantes

<div class="t-tr-text">Concepts C + +:<div class="t-tr-dropdown"><div><div><div class="t-tr-dropdown-arrow-border"></div><div class="t-tr-dropdown-arrow"></div><div class="t-tr-dropdown-h">Original:</div><div class="t-tr-dropdown-orig">C++ concepts:</div><div class="t-tr-dropdown-notes">The text has been machine-translated via [http://translate.google.com Google Translate].<br/> You can help to correct and verify the translation. Click [http://en.cppreference.com/w/Cppreference:MachineTranslations here] for instructions.</div></div></div></div></div> MoveAssignable (depuis C++11)

De cppreference.com

<metanoindex/>

 
 
C + + concepts
De base
Original:
Basic
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Bibliothque chelle
Original:
Library-Wide
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
NullablePointer (C++11)
Hash (C++11)
Allocator
Rcipient
Original:
Container
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
lments de conteneurs
Original:
Container Elements
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
CopyInsertable (C++11)
MoveInsertable (C++11)
Iterator
Original:
Iterator
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Nombres alatoires
Original:
Random Numbers
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Simultanit
Original:
Concurrency
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
BasicLockable (C++11)
Lockable (C++11)
TimedLockable (C++11)
Mutex (C++11)
TimedMutex (C++11)
Autre
Original:
Other
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
 
Indique qu'une instance de ce type peut tre assign dplacer (dplac). Cela signifie que ce type a une smantique dplacer: c'est, peut transfrer son tat interne une autre instance du mme type potentiellement rduire les frais gnraux .
Original:
Specifies that an instance of the type can be move-assigned (moved). This means that type has move semantics: that is, can transfer its internal state to another instance of the same type potentially minimizing the overhead.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

Exigences

Le type doit rpondre aux exigences CopyAssignable et / ou mettre en uvre les fonctions suivantes:
Original:
The type must meet CopyAssignable requirements and/or implement the following functions:
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

Type::operator=

<tbody> </tbody>
Type& Type::operator=( Type&& other ); Type& Type::operator=( const Type&& other ); Type& Type::operator=( volatile Type&& other ); Type& Type::operator=( const volatile Type&& other );
(
L'une des variantes est suffisante
Original:
One of the variants is sufficient
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
)

Dplacez oprateur d'affectation: assigns the contents of other. The internal state of other is unspecified after the move. However, it must still be valid, that is, no invariants of the type are broken. The function must return *this.

The following expressions must have the specified effects:

Expression
Original:
Expression
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Effects
a = rv;
a est quivalent rv, o a est une instance de Type et rv est un rfrence rvalue de Type .
Original:
a is equivalent to rv, where a is an instance of Type and rv is a rfrence rvalue of Type.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

Voir aussi

vrifie si un type a un oprateur d'affectation mouvement
Original:
checks if a type has a move assignment operator
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(classe gnrique) [edit]

Web Proxy Viewer  |  New URL  |  Original Page