std::basic_regex::operator=
De cppreference.com
< cpp | regex | basic regex
![]() |
This page has been machine-translated from the English version of the wiki using Google Translate.
The translation may contain errors and awkward wording. Hover over text to see the original version. You can help to fix errors and improve the translation. For instructions click here. |
Déclaré dans l'en-tête <regex>
|
||
basic_regex& operator=( const basic_regex& other ); |
(1) | (depuis C++11) |
basic_regex& operator=( basic_regex&& other ); |
(2) | (depuis C++11) |
basic_regex& operator=( const CharT* ptr ); |
(3) | (depuis C++11) |
basic_regex& operator=( std::initializer_list<CharT> il ); |
(4) | (depuis C++11) |
template< class ST, class SA > basic_regex& operator=( const std::basic_string<CharT,ST,SA>& p ); |
(5) | (depuis C++11) |
Assigne le contenu .
Original:
Assigns the contents.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
1)
Copiez opérateur d'affectation. Assigne le contenu de
other
. Equivalent à assign(other); .Original:
Copy assignment operator. Assigns the contents of
other
. Equivalent to assign(other);.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
2)
Déplacez opérateur d'affectation. Assigne le contenu de
other
utilisant la sémantique de déplacement. other
est dans un état valide, mais non précisée après l'opération. Equivalent à assign(other); .Original:
Move assignment operator. Assigns the contents of
other
using move semantics. other
is in valid, but unspecified state after the operation. Equivalent to assign(other);.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
3)
Affecte une chaîne de caractères terminée par NULL pointé par
ptr
. Equivalent à assign(ptr); .Original:
Assigns a null-terminated character string pointed to by
ptr
. Equivalent to assign(ptr);.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
4)
Affecte caractères contenus dans
il
liste d'initialisation. Equivalent à assign(il); .Original:
Assigns characters contained in initializer list
il
. Equivalent to assign(il);.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
5)
Affecte le contenu de la chaîne
p
. Equivalent à assign(p); .Original:
Assigns the contents of the string
p
. Equivalent to assign(p);.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
Sommaire |
[modifier] Paramètres
other | - | un autre objet regex
Original: another regex object The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
ptr | - | pointeur vers une chaîne de caractères terminée par NULL
Original: pointer to a null-terminated character string The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
il | - | liste d'initialisation contenant des caractères à affecter
Original: initializer list containing characters to assign The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
p | - | chaîne contenant des caractères à affecter
Original: string containing characters to assign The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
[modifier] Retourne la valeur
*this.
[modifier] Exceptions
1)
(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.
You can help to correct and verify the translation. Click here for instructions.
2)
3-5)
(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.
You can help to correct and verify the translation. Click here for instructions.
[modifier] Voir aussi
affecte le contenu Original: assigns the contents The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (fonction membre publique) |