...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
boost::proto::is_env — A Boolean metafuntion for determining whether or not a type is a Proto transform environment.
// In header: <boost/proto/transform/env.hpp>
template<typename T>
struct is_env : mpl::bool_<true-or-false
> {
};
is_env<T>
inherits from mpl::true_
under the following
conditions:
T
is proto::empty_env.T
is a specialization of proto::env<>.T
is derived from any of the above.T
is a cv-qualified variant of any of the above.T
is a reference to any of the above.
Otherwise, is_env<T>
inherits from mpl::false_
.