std::sub_match::operator string_type, std::sub_match::str
Da cppreference.com.
![]() | Questa pagina è stata tradotta in modo automatico dalla versione in ineglese della wiki usando Google Translate. La traduzione potrebbe contenere errori e termini strani. Muovi il puntatore sopra al testo per vedere la versione originale. Puoi aiutarci a correggere gli gli errori. Per ulteriori istruzioni clicca qui. |
operator string_type()const; | (1) | |
string_type str()const; | (2) | |
Converte in modo implicito a un oggetto del tipo std::basic_string sottostante.
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 in modo esplicito a un oggetto del tipo std::basic_string sottostante.
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.
Indice |
[modifica]Parametri
(Nessuno)
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.
[modifica]Valore di ritorno
Restituisce la sequenza di caratteri corrispondente come un oggetto del tipo std::basic_string sottostante. Se il membro
matched
è falsa la stringa vuota viene restituita.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.
[modifica]Complessità
Lineare nella lunghezza della sequenza di caratteri sottostante.
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.
[modifica]Esempio
std::ssub_match sm;std::string s = sm;// implicit conversionstd::cout<< s.length()<<'\n';
Output:
0