Diferenças entre edições de "cpp/regex/basic regex/operator="
Da cppreference.com
< cpp | regex | basic regex
(Translated from the English version using Google Translate) |
m (Use {{lc}}. Update links. Various fixes.) |
||
(2 edições intermédias de 2 utilizadores não apresentadas) | |||
Linha 2: | Linha 2: | ||
{{cpp/regex/basic_regex/title | operator{{=}}}} | {{cpp/regex/basic_regex/title | operator{{=}}}} | ||
{{cpp/regex/basic_regex/navbar}} | {{cpp/regex/basic_regex/navbar}} | ||
− | {{ | + | {{begin}} |
− | {{ | + | {{header | regex}} |
− | {{ | + | {{| num=1 | =c++11 | 1= |
basic_regex& operator=( const basic_regex& other ); | basic_regex& operator=( const basic_regex& other ); | ||
}} | }} | ||
− | {{ | + | {{| num=2 | sincec++11 | 1= |
basic_regex& operator=( basic_regex&& other ); | basic_regex& operator=( basic_regex&& other ); | ||
}} | }} | ||
− | {{ | + | {{| num=3 | sincec++11 | 1= |
basic_regex& operator=( const CharT* ptr ); | basic_regex& operator=( const CharT* ptr ); | ||
}} | }} | ||
− | {{ | + | {{| num=4 | sincec++11 | 1= |
basic_regex& operator=( std::initializer_list<CharT> il ); | basic_regex& operator=( std::initializer_list<CharT> il ); | ||
}} | }} | ||
− | {{ | + | {{| num=5 | sincec++11 | 1= |
template< class ST, class SA > | template< class ST, class SA > | ||
basic_regex& operator=( const std::basic_string<CharT,ST,SA>& p ); | basic_regex& operator=( const std::basic_string<CharT,ST,SA>& p ); | ||
}} | }} | ||
− | {{ | + | {{end}} |
{{tr|Atribui o conteúdo.|Assigns the contents.}} | {{tr|Atribui o conteúdo.|Assigns the contents.}} | ||
Linha 35: | Linha 35: | ||
===Parâmetros=== | ===Parâmetros=== | ||
− | {{ | + | {{begin}} |
− | {{ | + | {{| other |{{tr| outro objeto regex| another regex object}}}} |
− | {{ | + | {{| ptr |{{tr| ponteiro para uma cadeia de caracteres terminada com null| pointer to a null-terminated character string}}}} |
− | {{ | + | {{| il |{{tr| lista de inicializador contendo caracteres atribuir| initializer list containing characters to assign}}}} |
− | {{ | + | {{| p |{{tr| string contendo caracteres para atribuir| string containing characters to assign}}}} |
− | {{ | + | {{end}} |
===Valor de retorno=== | ===Valor de retorno=== | ||
Linha 53: | Linha 53: | ||
===Veja também=== | ===Veja também=== | ||
− | {{ | + | {{begin}} |
− | {{ | + | {{| cpp/regex/basic_regex/assign}} |
− | {{ | + | {{end}} |
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ |
Edição actual desde as 10h19min de 2 de julho de 2013
![]() |
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=( const std::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) |