libjmmcg  build_2783
A C++ library containing an eclectic mix of useful, advanced components.
jmmcg::ppd::private_::wrap_boost_bind_t< BindFn > Class Template Reference

A wrapper for converting a boost::bind() unspecified-object into an object suitable for transferring into a thread_pool. More...

#include <thread_dsel_types.hpp>

Public Types

typedef BindFn operation_type
 
typedef operation_type::result_type result_type
 

Public Member Functions

__stdcall wrap_boost_bind_t (operation_type &&fn) noexcept(noexcept(operation_type(std::declval< operation_type >()))) FORCE_INLINE
 
void __fastcall process (result_type &res) FORCE_INLINE
 
template<class BindFn1 >
constexpr bool __fastcall FORCE_INLINE operator< (BindFn1 const &) const noexcept(true)
 

Detailed Description

template<class BindFn>
class jmmcg::ppd::private_::wrap_boost_bind_t< BindFn >

A wrapper for converting a boost::bind() unspecified-object into an object suitable for transferring into a thread_pool.

Definition at line 372 of file thread_dsel_types.hpp.

Member Typedef Documentation

◆ operation_type

template<class BindFn >
typedef BindFn jmmcg::ppd::private_::wrap_boost_bind_t< BindFn >::operation_type

Definition at line 374 of file thread_dsel_types.hpp.

◆ result_type

template<class BindFn >
typedef operation_type::result_type jmmcg::ppd::private_::wrap_boost_bind_t< BindFn >::result_type

Definition at line 375 of file thread_dsel_types.hpp.

Constructor & Destructor Documentation

◆ wrap_boost_bind_t()

template<class BindFn >
__stdcall jmmcg::ppd::private_::wrap_boost_bind_t< BindFn >::wrap_boost_bind_t ( operation_type &&  fn)
inlineexplicitnoexcept
Parameters
fnAn object returned from calling boost::bind. There must be no unbound arguments in the ctor, otherwise this will fail to compile. Also the called function must return an instance of the result_type object, not void.

Definition at line 380 of file thread_dsel_types.hpp.

Member Function Documentation

◆ operator<()

template<class BindFn >
template<class BindFn1 >
constexpr bool __fastcall FORCE_INLINE jmmcg::ppd::private_::wrap_boost_bind_t< BindFn >::operator< ( BindFn1 const &  ) const
inlineconstexprnoexcept

Definition at line 389 of file thread_dsel_types.hpp.

◆ process()

template<class BindFn >
void __fastcall jmmcg::ppd::private_::wrap_boost_bind_t< BindFn >::process ( result_type res)
inline

Definition at line 384 of file thread_dsel_types.hpp.


The documentation for this class was generated from the following file: