cttl::alias::basic_string Namespace Reference

Alias helpers for std::basic_string::push_back() member function of STL string. More...


Functions

template<typename LambdaT , typename ArgumentT >
xst_unary_adaptor
< xst_lambda_wrap< xst_scalar
< xst_member_action< typename
LambdaT::value_T
&, std::mem_fun1_t< void,
typename LambdaT::value_T,
ArgumentT >, ArgumentT const
&, void >
> >, xst_dereference_policy
< xst_dereference_traits
< typename LambdaT::value_T,
void >::capacity_,
LambdaT::primitive_id_ >> 
push_back (xst_lambda_wrap< LambdaT > *plambda_, ArgumentT const &arg_)
 Alias helper function push_back.


Detailed Description

Alias helpers for std::basic_string::push_back() member function of STL string.


Function Documentation

template<typename LambdaT , typename ArgumentT >
xst_unary_adaptor< xst_lambda_wrap< xst_scalar< xst_member_action< typename LambdaT::value_T &, std::mem_fun1_t< void, typename LambdaT::value_T, ArgumentT >, ArgumentT const&, void > > > , xst_dereference_policy< xst_dereference_traits< typename LambdaT::value_T, void >::capacity_, LambdaT::primitive_id_ >> cttl::alias::basic_string::push_back ( xst_lambda_wrap< LambdaT > *  plambda_,
ArgumentT const &  arg_ 
)

Alias helper function push_back.

Returns closure for

    void alias::basic_string::push_back(value_type);

member function. The closure object delays actual function call till run-time by capturing pointer to member function and its argument.

Definition at line 514 of file xst_member_action_alias.h.

00520 {
00521     typedef typename LambdaT::value_T object_T;
00522     typedef void result_T;
00523     typedef xst_unary_adaptor<
00524         xst_lambda_wrap<
00525             xst_scalar<
00526                 xst_member_action<
00527                     /*ObjectT*/         typename LambdaT::value_T &,
00528                     /*MemberActionT*/   std::mem_fun1_t<
00529                                             /*ResultT*/void,
00530                                             /*ObjectT*/typename LambdaT::value_T,
00531                                             /*ArgumentT*/ArgumentT
00532                                         >,
00533                     /*ArgumentT*/       ArgumentT const&,
00534                     /*ResultT*/         void
00535                 >
00536             >
00537         >
00538         ,
00539         xst_dereference_policy<
00540             xst_dereference_traits<
00541                 /*ObjectT*/ typename LambdaT::value_T,
00542                 /*ResultT*/ void
00543             >::capacity_,
00544             LambdaT::primitive_id_
00545         >
00546     >
00547     xst_adaptor_T;
00548 
00549     return xst_adaptor_T( scalar(
00550 #ifdef CTTL_TRACE_DEPOSITS
00551             xst_traced_action(
00552                 __LINE__,
00553                 "void alias::basic_string::push_back(value_type)",
00554 #else
00555             action(
00556 #endif // CTTL_TRACE_DEPOSITS
00557                 &plambda_->top( const_scalar( 0 ) ),
00558                 ( std::mem_fun1_t<
00559                     result_T,
00560                     object_T,
00561                     ArgumentT
00562                     >
00563                     ( &object_T::push_back )
00564                 ),
00565                 arg_
00566             )
00567         ))
00568         ;
00569 }


Generated on Sun Aug 23 13:44:11 2009 for Common Text Transformation Library by  doxygen 1.5.9