class
<mutex>

std::try_to_lock_t

struct try_to_lock_t {};
Type of try_to_lock
This is an empty class used as the type of try_to_lock.

Passing try_to_lock to unique_lock's constructor, makes it to attempt to lock the mutex object by calling its try_lock member, instead of lock.

See also