...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
boost::log::attributes::cast_source
// In header: <boost/log/attributes/attribute_cast.hpp> class cast_source { public: // public member functions explicit cast_source(attribute::impl *); template<typename T> T * as() const; };
The class holds a reference to the attribute factory implementation being casted
cast_source
public member functionsexplicit cast_source(attribute::impl * p);
Initializing constructor. Creates a source that refers to the specified factory implementation.
template<typename T> T * as() const;
The function attempts to cast the aggregated pointer to the implementation to the specified type.
Returns: |
The converted pointer or |