Struct template env
boost::proto::env
Synopsis
template<typename Key, typename Value, typename Env = proto::empty_env>
struct env {
explicit env(Value const &, Env const & = Env());
see-below
operator[](see-below
) const;
};
Description
env
public
construct/copy/destruct
-
explicit env(Value const & value, Env const & other = Env());
Parameters: |
other
|
Another key/value store.
|
value
|
The value to be associated with the Key .
|
|
env
public member functions
-
see-below
operator[](see-below
) const;
If called with an object that is implicitly convertible to type Key
,
this function returns the Value
passed to the constructor. Otherwise, it returns
the result of calling operator[]
on the Env
passed to
the constructor.