std::sub_match::operator string_type, std::sub_match::str
Aus 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) | |
Implizit setzt auf ein Objekt des zugrunde liegenden std::basic_string Typ .
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.
Explizit wandelt auf ein Objekt des zugrundeliegenden std::basic_string Typ .
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.
Inhaltsverzeichnis |
[Bearbeiten] Parameter
(None)
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.
[Bearbeiten] Rückgabewert
Gibt die übereinstimmende Zeichenfolge als ein Objekt des zugrundeliegenden std::basic_string Typ. Wenn die
matched
Mitglied ist false wird ein leerer String zurückgegeben wird .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.
[Bearbeiten] Komplexität
Linear in der Länge der zugrunde liegenden Zeichensequenz .
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.
[Bearbeiten] Beispiel
std::ssub_match sm; std::string s = sm; // implicit conversion std::cout << s.length() << '\n';
Output:
0