std::basic_regex::operator=
Da 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. |
Definido no cabeçalho <regex> | ||
basic_regex& operator=(const basic_regex& other ); | (1) | (desde C++11) |
basic_regex& operator=( basic_regex&& other ); | (2) | (desde C++11) |
basic_regex& operator=(const CharT* ptr ); | (3) | (desde C++11) |
basic_regex& operator=(std::initializer_list<CharT> il ); | (4) | (desde C++11) |
template<class ST, class SA > basic_regex& operator=(conststd::basic_string<CharT,ST,SA>& p ); | (5) | (desde C++11) |
Atribui o conteúdo.
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)
Copiar operador de atribuição. Atribui o conteúdo de
other
. Equivalente a 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)
Mova operador de atribuição. Atribui o conteúdo de
other
usando semântica de movimento. other
está em estado válido, mas não especificado após a operação. Equivalente a 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)
Atribui uma cadeia de caracteres terminada em nulo apontado por
ptr
. Equivalente a 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)
Atribui caracteres contidos
il
lista de inicializador. Equivalente a 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)
Atribui o conteúdo da
p
cadeia. Equivalente a 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.
Índice |
[editar]Parâmetros
other | - | outro objeto 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 | - | ponteiro para uma cadeia de caracteres terminada com 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 | - | lista de inicializador contendo caracteres atribuir 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 | - | string contendo caracteres para atribuir 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. |
[editar]Valor de retorno
*this.
[editar]Exceções
1)
(Nenhum)
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)
(Nenhum)
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.
[editar]Veja também
atribui o conteúdo 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. (função pública membro) |