Type operator()(
   const reference_wrapper<
     typename remove_const<
       typename remove_reference<Value>::type>::type>& x,int=0)const
 { 
   return operator()(x.get());
 }
Beispiel #2
0
 bool
 compare_equal(const Function& f, const reference_wrapper<Functor>& g,
               int, false_type)
 {
   if (const Functor* fp = f.template target<Functor>())
     return fp == g.get_pointer();
   else return false;
 }
Beispiel #3
0
  Type operator()(
    const reference_wrapper<
      typename remove_const<
        typename remove_reference<Value>::type>::type>& x

#if BOOST_WORKAROUND(BOOST_MSVC,==1310)
/* http://lists.boost.org/Archives/boost/2015/10/226135.php */
    ,int=0
#endif

  )const
  { 
    return operator()(x.get());
  }
Beispiel #4
0
 Type operator()(const reference_wrapper<Class>& x)const
 { 
   return operator()(x.get());
 }
 void m_visit_reference_wrapper(const reference_wrapper<T> &t, const mpl::bool_<true> &) const
 {
     m_visit_pointer(t.get_pointer(), mpl::bool_<true>());
 }
Beispiel #6
0
 Type operator()(const reference_wrapper<const Value>& x)const
 { 
   return operator()(x.get());
 }
Beispiel #7
0
 static void
 call(reference_wrapper<T> const& val, Attribute& attr)
 {
     assign_to(val.get(), attr);
 }
Beispiel #8
0
 static type call(reference_wrapper<basic_regex<BidiIter> const> const &rex)
 {
     typedef core_access<BidiIter> access;
     shared_ptr<regex_impl<BidiIter> > impl = access::get_regex_impl(rex.get());
     return type(impl);
 }
Beispiel #9
0
 /*!
  * Constructor
  *
  * \param obj Object to be referenced
  */
 explicit fmt_wrapper(reference_wrapper< T > const& obj) : m_T(obj.get()) {}
 inline Return operator() ( const reference_wrapper< const Type >& v_ref ) const
 {
     return this->operator() ( v_ref.get() );
 }
Beispiel #11
0
 void worker_died_unexpectedly(size_t const new_worker_count)
 {
     m_pool.get().resize(new_worker_count + 1);
 }
Beispiel #12
0
 bool resize(size_t const worker_count)
 {
     return m_pool.get().resize(worker_count);
 }
Beispiel #13
0
 bool resize(size_t worker_count)
 {
     return m_policy.get().resize(worker_count);
 }
Beispiel #14
0
 static type call(reference_wrapper<Attribute> const& attr, Context& ctx)
 {
     return extract_from<Exposed>(attr.get(), ctx);
 }
 inline bool operator>=(const reference_wrapper<T>& lhs, const reference_wrapper<T>& rhs){
   return lhs.get() >= rhs.get();
 }
inline void
put(reference_wrapper<M> mapp, K a, V p)
{
  mapp.get()[a] = p;
}