Compartir vía


<thread> Operadores

operator!=
operator>
operator>=
operator<
operator<<
operator<=
operator==

operator>=

Determina si un objeto thread::id es mayor o igual que otro objeto.

bool operator>= (
    thread::id Left,
    thread::id Right) noexcept

Parámetros

Izquierdo
Objeto thread::id izquierdo.

Right
Objeto thread::id derecho.

Valor devuelto

!(Left < Right)

Comentarios

Esta función no produce ninguna excepción.

operator>

Determina si un objeto thread::id es mayor que otro objeto.

bool operator> (
    thread::id Left,
    thread::id Right) noexcept

Parámetros

Izquierdo
Objeto thread::id izquierdo.

Right
Objeto thread::id derecho.

Valor devuelto

Right < Left

Comentarios

Esta función no produce ninguna excepción.

operator<=

Determina si un objeto thread::id es menor o igual que otro objeto.

bool operator<= (
    thread::id Left,
    thread::id Right) noexcept

Parámetros

Izquierdo
Objeto thread::id izquierdo.

Right
Objeto thread::id derecho.

Valor devuelto

!(Right < Left)

Comentarios

Esta función no produce ninguna excepción.

operator<

Determina si un objeto thread::id es menor que otro objeto.

bool operator<(
    thread::id Left,
    thread::id Right) noexcept

Parámetros

Izquierdo
Objeto thread::id izquierdo.

Right
Objeto thread::id derecho.

Valor devuelto

true si Left precede a Right en la ordenación total. De lo contrario es false.

Comentarios

El operador define una ordenación total en todos los objetos thread::id. Estos objetos pueden usarse como claves en contenedores asociativos.

Esta función no produce ninguna excepción.

operator!=

Compara dos objetos thread::id para determinar si no son iguales.

bool operator!= (
    thread::id Left,
    thread::id Right) noexcept

Parámetros

Izquierdo
Objeto thread::id izquierdo.

Right
Objeto thread::id derecho.

Valor devuelto

!(Left == Right)

Comentarios

Esta función no produce ninguna excepción.

operator==

Compara dos objetos thread::id para determinar si son iguales.

bool operator== (
    thread::id Left,
    thread::id Right) noexcept

Parámetros

Izquierdo
Objeto thread::id izquierdo.

Right
Objeto thread::id derecho.

Valor devuelto

true si los dos objetos representan el mismo subproceso de ejecución o si ninguno de estos objetos representa un subproceso de ejecución. De lo contrario es false.

Comentarios

Esta función no produce ninguna excepción.

operator<<

Inserta una representación de texto de un objeto thread::id en una secuencia.

template <class Elem, class Tr>
basic_ostream<Elem, Tr>& operator<<(
    basic_ostream<Elem, Tr>& Ostr, thread::id Id);

Parámetros

Ostr
Un objeto basic_ostream.

Id
Un objeto thread::id.

Valor devuelto

Ostr.

Comentarios

Esta función inserta Id en Ostr.

Si dos objetos thread::id son iguales, las representaciones de texto insertadas de dichos objetos son iguales.

Consulte también

<thread>