The class holds a reference to the attribute factory implementation being casted. More...
#include <attribute_cast.hpp>
Public Member Functions | |
cast_source (attribute::impl *p) | |
Initializing constructor. More... | |
template<typename T > | |
T * | as () const |
The function attempts to cast the aggregated pointer to the implementation to the specified type. More... | |
The class holds a reference to the attribute factory implementation being casted.
|
inlineexplicit |
Initializing constructor.
Creates a source that refers to the specified factory implementation.
|
inline |
The function attempts to cast the aggregated pointer to the implementation to the specified type.
NULL
, if the conversion fails. References T.