A type-safe, lightweight wrapper for any raw pointer type. Using std::any
with a raw pointer type could achieve similar functionality. However, this class is dedicated for raw pointers and is guaranteed to have no dynamic allocation.
More...
#include <TAnyPtr.h>
template<bool IS_CONST>
class ph::TAnyPtr< IS_CONST >
A type-safe, lightweight wrapper for any raw pointer type. Using std::any
with a raw pointer type could achieve similar functionality. However, this class is dedicated for raw pointers and is guaranteed to have no dynamic allocation.
◆ TAnyPtr() [1/3]
◆ TAnyPtr() [2/3]
◆ TAnyPtr() [3/3]
template<bool IS_CONST>
template<typename T >
◆ get()
template<bool IS_CONST>
template<typename T >
◆ operator bool()
◆ operator T*()
template<bool IS_CONST>
template<typename T >
The documentation for this class was generated from the following file: