Libosmium
2.20.0
Fast and flexible C++ library for working with OpenStreetMap data
|
#include <function_wrapper.hpp>
Classes | |
struct | impl_base |
struct | impl_type |
Public Member Functions | |
template<typename TFunction , typename X = typename std::enable_if< !std::is_same<TFunction, function_wrapper>::value, void>::type> | |
function_wrapper (TFunction &&f) | |
function_wrapper (int) | |
bool | operator() () |
function_wrapper ()=default | |
function_wrapper (const function_wrapper &)=delete | |
function_wrapper & | operator= (const function_wrapper &)=delete |
function_wrapper (function_wrapper &&other) noexcept | |
function_wrapper & | operator= (function_wrapper &&other) noexcept |
~function_wrapper ()=default | |
operator bool () const | |
Private Attributes | |
std::unique_ptr< impl_base > | impl |
This function wrapper can collect move-only functions unlike std::function which needs copyable functions. Taken from the book "C++ Concurrency in Action".
|
inline |
|
inlineexplicit |
|
default |
|
delete |
|
inlinenoexcept |
|
default |
|
inlineexplicit |
|
inline |
|
delete |
|
inlinenoexcept |
|
private |