reference<>
is a lazy wrapper for a reference that can be used in xpressive semantic actions.
More...
#include <xpressive_fwd.hpp>
Public Types | |
typedef proto::extends < typename proto::terminal < reference_wrapper< T > >::type, reference< T > > | base_type |
INTERNAL ONLY. More... | |
Public Member Functions | |
reference (T &t) | |
Store a reference to t . More... | |
T & | get () const |
Fetch the stored value. More... | |
reference<>
is a lazy wrapper for a reference that can be used in xpressive semantic actions.
T | The type of the referent. |
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.
typedef proto::extends<typename proto::terminal<reference_wrapper<T> >::type, reference<T> > boost::xpressive::reference< T >::base_type |
INTERNAL ONLY.
|
inlineexplicit |
Store a reference to t
.
t | Reference to object |
|
inline |
Fetch the stored value.
References boost::proto::value().