![]() |
Home | Libraries | People | FAQ | More |
boost::proto::functional::as_env — A unary PolymorphicFunctionObject for ensuring that an object is a transform environment. If it isn't already, it is turned into one such that the object is associated with the proto::data_type key.
// In header: <boost/proto/transform/env.hpp> struct as_env : proto::callable { // member classes/structs/unions template<typename Sig> struct result { // types typedef; }; // public member functions template<typename T>
() ; template<typename T>
() ; };
as_env
public member functionstemplate<typename T>( t) ; template<typename T>
( t) ;
If proto::is_env<T>::value
is false
,
this function returns the result of (proto::data = t)
.
See proto::data_type::operator=
for details.
Otherwise, this function returns t
by reference.