Delen via


operator== Operator (<thread>)

Compares two thread::id objects for equality.

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

Parameters

  • Left
    The left thread::id object.

  • Right
    The right thread::id object.

Return Value

true if the two objects represent the same thread of execution or if neither object represents a thread of execution; otherwise, false.

Remarks

This function does not throw any exceptions.

Requirements

Header: thread

Namespace: std

See Also

Reference

<thread>

Other Resources

C++ Standard Library Header Files