Photon Engine 2.0.0-beta
A physically based renderer.
Loading...
Searching...
No Matches
TAnyPtr.h File Reference
#include <utility>
#include <cstddef>
#include <type_traits>
#include <typeindex>

Go to the source code of this file.

Classes

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. More...
 

Namespaces

namespace  ph
 The root for all renderer implementations.
 

Typedefs

using ph::AnyConstPtr = TAnyPtr<true>
 A type-safe, lightweight wrapper for any const raw pointer type.
 
using ph::AnyNonConstPtr = TAnyPtr<false>
 A type-safe, lightweight wrapper for any non-const raw pointer type.