std::swap<div class="t-tr-text">(Std :: match_results)<div class="t-tr-dropdown"><div><div><div class="t-tr-dropdown-arrow-border"></div><div class="t-tr-dropdown-arrow"></div><div class="t-tr-dropdown-h">Original:</div><div class="t-tr-dropdown-orig">(std::match_results)</div><div class="t-tr-dropdown-notes">The text has been machine-translated via [http://translate.google.com Google Translate].<br/> You can help to correct and verify the translation. Click [http://en.cppreference.com/w/Cppreference:MachineTranslations here] for instructions.</div></div></div></div></div>
De cppreference.com
|
|
Esta página se ha traducido por ordenador/computador/computadora de la versión en inglés de la Wiki usando Google Translate.
La traducción puede contener errores y palabras aparatosas/incorrectas. Planea sobre el texto para ver la versión original. Puedes ayudar a corregir los errores y mejorar la traducción. Para instrucciones haz clic aquí. |
| Definido en el archivo de encabezado <regex>
|
||
template< class BidirIt, class Alloc >
bool operator==( match_results<BidirIt,Alloc>& lhs,
match_results<BidirIt,Alloc>& rhs );
|
(1) | (desde C++11) |
template< class BidirIt, class Alloc >
bool operator!=( match_results<BidirIt,Alloc>& lhs,
match_results<BidirIt,Alloc>& rhs );
|
(2) | (desde C++11) |
Compara dos objetos
match_results .Original:
Compares two
match_results objects.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.
Dos
match_results son iguales si se cumplen los siguientes requisitos:Original:
Two
match_results are equal if the following conditions are met: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.
- ninguno de los objetos es listo' oOriginal:neither of the objects is ready, orThe text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions. - ambos resultados de los partidos están listos' y las siguientes condiciones se cumplen:Original:both match results are ready and the following conditions are met:The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
lhs.empty()andrhs.empty(), or!lhs.empty()y!rhs.empty()y se cumplan los siguientes requisitos:Original:!lhs.empty()and!rhs.empty()and the following conditions are met:The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
lhs.prefix() == rhs.prefix()std::equal(lhs.begin(), lhs.end(), rhs.begin())lhs.suffix() == rhs.suffix()
1)
Comprueba si
lhs y rhs son iguales .Original:
Checks if
lhs and rhs are equal.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)
Comprueba si
lhs y rhs no son iguales .Original:
Checks if
lhs and rhs are not equal.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.
Parámetros
| lhs, rhs | - | de acuerdo con los resultados para comparar
Original: match results to compare The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
| Requisitos de tipo | ||
-BidirIt debe reunir los requerimientos de BidirectionalIterator.
| ||
-Alloc debe reunir los requerimientos de Allocator.
| ||
Valor de retorno
1)
true si lhs y rhs son iguales, por lo demás false .Original:
true if lhs and rhs are equal, false otherwise.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)
true si lhs y rhs no son iguales, por lo demás false .Original:
true if lhs and rhs are not equal, false otherwise.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.
Excepciones
(Ninguno)
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.
Ejemplo
| Esta sección está incompleta Razón: sin ejemplo |