...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::domain_of
// In header: <boost/proto/domain.hpp>
template<typename T>
struct domain_of {
// types
typedef domain-of-T
type;
};
A metafunction that returns the domain of a given type. If T
is a Proto
expression type, it returns that expression's associated domain. If not, it returns
proto::default_domain
.