Namespaces
Variants
Views
Actions

deduction guides for std::lock_guard

From cppreference.com
< cpp‎ | thread‎ | lock guard
Defined in header <mutex>
template<class M>
lock_guard(lock_guard<M>) -> lock_guard<M>;
(since C++17)

One deduction guide is provided for std::lock_guard.

[edit] Example