Open C++ Libraries.org develop
Loading...
Searching...
No Matches
ocl::smart_ptr Namespace Reference

Support for the smart pointer file for the OCL. More...

Classes

class  tracked_allocator
 
class  tracked_mgr
 
class  tracked_ptr
 

Typedefs

template<class Type , class Del = std::default_delete<Type>>
using unique_ptr = std::unique_ptr< Type, Del >
 
template<class Type >
using shared_ptr = std::shared_ptr< Type >
 
template<class Type >
using weak_ptr = std::weak_ptr< Type >
 

Functions

template<class Type >
auto delete_ptr (Type *object) -> shared_ptr< Type >
 Constructs a delete_ptr, that is, a pointer that isn't deleted from the heap.
 
template<typename Type >
auto make_tracked () -> tracked_ptr< Type >
 
template<typename RetType , typename... Type>
auto make_tracked (Type &&... arg) -> tracked_ptr< RetType >
 
template<typename Type >
void swap (tracked_ptr< Type > &a, tracked_ptr< Type > &b)
 
template<typename Type >
void try_throw (tracked_ptr< Type > &ptr)
 This function is a standard way to verify a container' validity, inspired from NeKernel/VMKernel.
 

Detailed Description

Support for the smart pointer file for the OCL.

Tracked smart pointer support file for the OCL.