std::greater_equal
![]() |
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 <functional>
|
||
template< class T > struct greater_equal; |
||
T
tipo .T
.You can help to correct and verify the translation. Click here for instructions.
Contenido |
[editar] Notas
Una especialización de std::greater_equal
para cualquier tipo puntero produce el orden total estricto para punteros definido por la implementación, incluso si el operador operator<=
no lo hace.
El orden total estricto definido por la implementación es consistente con el orden parcial impuesto por los operadores de comparación integrados (<=>
, (desde C++20)<
, >
, <=
, y >=
), y consistente entre los siguientes objetos función estándar:
- std::less, std::greater, std::less_equal, y std::greater_equal, cuando el argumento de plantilla es un tipo puntero o void (desde C++14)
(desde C++20) |
[editar] Tipos de miembros
tipo
Original: type The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
definition |
result_type
|
bool
|
first_argument_type
|
T
|
second_argument_type
|
T
|
[editar] Las funciones miembro
operator() |
comprueba si el primer argumento es mayor''' que o igual que la segunda Original: checks if the first argument is greater than or equal to the second The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (función miembro pública) |
std :: greater_equal ::Original:std::greater_equal::The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.operator()
You can help to correct and verify the translation. Click here for instructions.
bool operator()( const T& lhs, const T& rhs ) const; |
||
Checks whether lhs
is greater than or equal to rhs
.
Parameters
lhs, rhs | - | menos valores para comparar
Original: values to compare The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
Return value
true if lhs >= rhs, false otherwise.
Exceptions
(none)
Possible implementation
bool operator()(const T &lhs, const T &rhs) const { return lhs >= rhs; } |