std::shared_mutex::try_lock_shared

Tries to lock the mutex in shared mode. Returns immediately. On successful lock acquisition returns true, otherwise returns false.

# Declarations

bool try_lock_shared();

(since C++17)

# Return value

true if the lock was acquired successfully, otherwise false.

# Example

This section is incompleteReason: no example

# See also