Support Class Library
A set of tools providing classes and utility
with.h
Go to the documentation of this file.
1 #pragma once
3 
4 namespace scl{
5  namespace async{
13  template <class Resource, class F>
14  auto with(Resource&& res, F&& f) -> META::return_t<F> {
15  with_traits<Resource> traits;
16  return traits(std::forward<Resource>(res), std::forward<F>(f));
17  }
18  }
19 }
Global namespace of the SCL.
Definition: alias.hpp:3
auto with(Resource &&res, F &&f) -> scl::tools::meta ::return_t< F >
Execute a transaction in a guarded manner.
Definition: with.h:14
Traits for use with the scl::async::with function.
Definition: with_traits.h:15