Boost C++ Libraries Home Libraries People FAQ More

PrevUpHomeNext

Struct template reference

boost::xpressive::reference — reference<> is a lazy wrapper for a reference that can be used in xpressive semantic actions.

Synopsis

// In header: <boost/xpressive/regex_actions.hpp>

template<typename T> 
struct reference : public  {

  // public member functions
  ();
   () ;
};

Description

Here is an example of how to use reference<> to create a lazy reference to an existing object so it can be read and written in an xpressive semantic action.

;
 >  = +) >> "=>" >> (= +) )
    [ ] = ) ];

Template Parameters

  1. typename T

    The type of the referent.

reference public member functions

  1. ( t);
    Store a reference to t.

    Parameters:

    t

    Reference to object

  2.  () ;
    Fetch the stored value.

PrevUpHomeNext