1#ifndef OSMIUM_THREAD_FUNCTION_WRAPPER_HPP
2#define OSMIUM_THREAD_FUNCTION_WRAPPER_HPP
68 std::unique_ptr<impl_base>
impl;
90 template <
typename TFunction,
typename X =
typename std::enable_if<
91 !std::is_same<TFunction, function_wrapper>::value,
void>
::type>
114 impl(std::move(other.impl)) {
118 impl = std::move(other.impl);
124 explicit operator bool()
const {
125 return static_cast<bool>(
impl);
Definition: function_wrapper.hpp:48
std::unique_ptr< impl_base > impl
Definition: function_wrapper.hpp:68
function_wrapper(TFunction &&f)
Definition: function_wrapper.hpp:93
function_wrapper(function_wrapper &&other) noexcept
Definition: function_wrapper.hpp:113
function_wrapper & operator=(const function_wrapper &)=delete
function_wrapper(int)
Definition: function_wrapper.hpp:100
~function_wrapper()=default
function_wrapper & operator=(function_wrapper &&other) noexcept
Definition: function_wrapper.hpp:117
function_wrapper()=default
bool operator()()
Definition: function_wrapper.hpp:104
function_wrapper(const function_wrapper &)=delete
type
Definition: entity_bits.hpp:63
Namespace for everything in the Osmium library.
Definition: assembler.hpp:53
Definition: location.hpp:555
Definition: function_wrapper.hpp:50
virtual bool call()
Definition: function_wrapper.hpp:62
impl_base() noexcept=default
Definition: function_wrapper.hpp:71
impl_type(F &&functor)
Definition: function_wrapper.hpp:75
F m_functor
Definition: function_wrapper.hpp:73
bool call() override
Definition: function_wrapper.hpp:79