Documentation Home >> Headers >> <thread> Header >> std::thread::id >> std::thread::id Inequality Comparison Operator

Compare two instances of std::thread::id to see if they represent different threads of execution.

bool operator!=(
    std::thread::id lhs,std::thread::id rhs);

Returns:

!(lhs==rhs)

Throws:

Nothing

Header

#include <thread>

See Also