std::shared_lock<Mutex>::owns_lock
Min standard notice:
Checks whether *this owns a locked mutex or not.
# Declarations
bool owns_lock() const noexcept;
(since C++14)
# Return value
true if *this has an associated mutex and has acquired shared ownership of it, false otherwise.