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  {
  // construct/copy/destruct
  ();

  // 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.

reference<std::map<std::string, int> > sregex 

Template Parameters

  1. typename T

    The type of the referent.

reference public construct/copy/destruct

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

    Parameters:

    t

    Reference to object

reference public member functions

  1.  () ;
    Fetch the stored value.

PrevUpHomeNext