Struct template local
boost::xpressive::local — 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.
Synopsis
template<typename T>
struct local : public {
();
();
();
() ;
};
Description
Below is an example of how to use local<>
in semantic actions.
local<int> sregex
![[Note]](../../../../doc/src/images/note.png) |
Note |
As the name "local" suggests, 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. |
Template Parameters
-
typename T
The type of the local variable.
local
public
construct/copy/destruct
-
();
Store a default-constructed value of type T
.
-
( t);
Store a default-constructed value of type T
.
local
public member functions
-
();
Fetch the wrapped value.
-
() ;
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.