14 template <
class Resource>
23 auto operator()(Resource& resource, F&& delegate) -> META::return_t<F> {
31 auto operator()(std::mutex& mutex, F&& delegate) -> META::return_t<F> {
32 std::lock_guard<decltype(mutex)>
_{mutex};
33 return std::forward<F>(delegate)();
Exception class used when a resource is used without specialized traits.
Global namespace of the SCL.
auto operator()(std::mutex &mutex, F &&delegate) -> scl::tools::meta ::return_t< F >
auto operator()(Resource &resource, F &&delegate) -> scl::tools::meta ::return_t< F >
Invoke a delegate using the wrapper.
constexpr scl::utils::Placeholder _
Traits for use with the scl::async::with function.