Loki  0.1.7
Loki::SmartPtr< T, OwnershipPolicy, ConversionPolicy, CheckingPolicy, StoragePolicy, ConstnessPolicy > Class Template Reference

#include <SmartPtr.h>

Inherits StoragePolicy< T >, OwnershipPolicy< StoragePolicy< T >::InitPointerType >, CheckingPolicy< StoragePolicy< T >::StoredType >, and ConversionPolicy.

Detailed Description

template<typename T, template< class > class OwnershipPolicy, class ConversionPolicy, template< class > class CheckingPolicy, template< class > class StoragePolicy, template< class > class ConstnessPolicy>
class Loki::SmartPtr< T, OwnershipPolicy, ConversionPolicy, CheckingPolicy, StoragePolicy, ConstnessPolicy >

Parameters
OwnershipPolicydefault = RefCounted,
ConversionPolicydefault = DisallowConversion,
CheckingPolicydefault = AssertCheck,
StoragePolicydefault = DefaultSPStorage
ConstnessPolicydefault = LOKI_DEFAULT_CONSTNESS
IMPORTANT NOTE
Due to threading issues, the OwnershipPolicy has been changed as follows:
  • Release() returns a boolean saying if that was the last release so the pointer can be deleted by the StoragePolicy
  • IsUnique() was removed

The documentation for this class was generated from the following file: