SmartPointer
Checking policies describe when the pointee is checked for validity. Generally, such policies should follow the following example
template <typename Str> class ExamplePolicy { protected: ExamplePolicy(); template <typename U> ExamplePolicy(const ExamplePolicy<U>&); static void checkDefault(const Str&); static void checkInit(const Str&); static void checkDereference(const Str&); static void swap(ExamplePolicy&); };
NoChecking -> AssertDereference -> SafeDereference
Namespaces | |
| namespace | ONE |
| namespace | ONE::util |
Classes | |
| class | ONE::util::AssertDereference< Str > |
uses assert to safeguard against dereferenced 0 pointers More... | |
| class | ONE::util::NoChecking< Str > |
| performs no checking More... | |
| class | ONE::util::SafeDereference< Str > |
throws an exception when a 0 pointer is dereferenced More... | |
1.4.3