The Sparta Modeling Framework
|
Template type helper that removes a pointer, adds a const, and then re-adds the pointer. This is useful to turn "T" [T=U*] into "U const *" in places where simply using "const T" results in "U* const". More...
#include <Utils.hpp>
Public Types | |
typedef ConstT | type |
Template type helper that removes a pointer, adds a const, and then re-adds the pointer. This is useful to turn "T" [T=U*] into "U const *" in places where simply using "const T" results in "U* const".
T | Type of object to use. Must be a pointer, typically with only one level (i.e. "U*", not "U**"). |
ConstT | The const object pointer type derived from T. Do not set. Use the default value instead |
Example:
or
typedef ConstT sparta::ptr_to_const_obj_ptr< T, ConstT >::type |