std::sub_match::operator string_type, std::sub_match::str
Da cppreference.com
![]() |
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. |
operator string_type() const; |
(1) | |
string_type str() const; |
(2) | |
Implicitamente converte para um objeto do tipo std::basic_string subjacente.
2) Original:
Implicitly converts to an object of the underlying std::basic_string type.
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.
Converte explicitamente a um objeto do tipo std::basic_string subjacente.
Original:
Explicitly converts to an object of the underlying std::basic_string type.
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
(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] Valor de retorno
Retorna a seqüência de caracteres combinados como um objeto do tipo std::basic_string subjacente. Se o membro
matched
é falso então a string vazia é retornada.Original:
Returns the matched character sequence as an object of the underlying std::basic_string type. If the
matched
member is false then the empty string is returned.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] Complexidade
Linear no comprimento da seqüência de caracteres de base.
Original:
Linear in the length of the underlying character sequence.
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] Exemplo
std::ssub_match sm; std::string s = sm; // implicit conversion std::cout << s.length() << '\n';
Saída:
0