local<>
is a lazy wrapper for a reference to a value that is stored within the local itself.
More...
#include <xpressive_fwd.hpp>
Public Types | |
typedef proto::terminal < reference_wrapper< T > >::type | base_type |
INTERNAL ONLY. More... | |
Public Member Functions | |
local () | |
Store a default-constructed value of type T . More... | |
local (T const &t) | |
Store a default-constructed value of type T . More... | |
T & | get () |
Fetch the wrapped value. More... | |
T const & | get () const |
Public Attributes | |
T | value |
local<>
is a lazy wrapper for a reference to a value that is stored within the local itself.
It is for use within xpressive semantic actions.
T | The type of the local variable. |
Below is an example of how to use local<>
in semantic actions.
local<>
objects and the regexes that refer to them should never leave the local scope. The value stored within the local object will be destroyed at the end of the local<>'s
lifetime, and any regex objects still holding the local<>
will be left with a dangling reference. typedef proto::terminal<reference_wrapper<T> >::type boost::xpressive::local< T >::base_type |
INTERNAL ONLY.
|
inline |
Store a default-constructed value of type T
.
|
inlineexplicit |
Store a default-constructed value of type T
.
t | The initial value. |
|
inline |
Fetch the wrapped value.
References boost::proto::value().
|
inline |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
References boost::proto::value().
|
inherited |