std::sub_match::operator string_type, std::sub_match::str
De 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) | |
Convertit implicitement à un objet du type std::basic_string sous-jacente .
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.
Convertit explicitement à un objet du type std::basic_string sous-jacente .
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.
Sommaire |
[modifier]Paramètres
(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]Retourne la valeur
Retourne la séquence de caractères appariés comme un objet du type std::basic_string sous-jacent. Si le membre est
matched
faux, la chaîne vide est retournée .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.
[modifier]Complexité
Linéaire à la longueur de la séquence de caractères sous-jacent .
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.
[modifier]Exemple
std::ssub_match sm;std::string s = sm;// implicit conversionstd::cout<< s.length()<<'\n';
Résultat :
0