public member function
<mutex>

std::timed_mutex::timed_mutex

default (1)
constexpr timed_mutex() noexcept;
copy [deleted] (2)
timed_mutex (const timed_mutex&) = delete;
Construct timed_mutex
Constructs a timed_mutex object.

The object is in an unlocked state.

timed_mutex objects cannot be copied/moved (both the copy constructor and assignment operator are deleted for this type).

Parameters

none

Data races

The construction of timed_mutex is not atomic itself: Accessing the object while being constructed may initiate a data race.

Exception safety

No-throw guarantee: never throws exceptions.

See also