std::shared_lock<Mutex>::try_lock

Tries to lock the associated mutex in shared mode without blocking. Effectively calls mutex()->try_lock_shared().

# Declarations

bool try_lock();

(since C++14)

# Return value

true if the ownership of the mutex has been acquired successfully, false otherwise.

# Example

This section is incompleteReason: no example

# See also