# Loki::SmartPointer< AbstractProduct, OwnershipPolicy, ConversionPolicy, CheckingPolicy, ConstnessPolicy > Class Template Reference
[Encapsulation policies]

Encapsulate the object in a SmartPtr with FunctionStorage policy. More...

`#include <SPCachedFactory.h>`

List of all members.

## Detailed Description

### template<class AbstractProduct, template< class > class OwnershipPolicy = RefCounted, class ConversionPolicy = DisallowConversion, template< class > class CheckingPolicy = AssertCheck, template< class > class ConstnessPolicy = LOKI_DEFAULT_CONSTNESS>
class Loki::SmartPointer< AbstractProduct, OwnershipPolicy, ConversionPolicy, CheckingPolicy, ConstnessPolicy >

Encapsulate the object in a SmartPtr with FunctionStorage policy.

The object will come back to the Cache as soon as no more SmartPtr are referencing this object. You can customize the SmartPointer with the standard SmartPtr policies (OwnershipPolicy, ConversionPolicy, CheckingPolicy, ConstnessPolicy) but StoragePolicy is forced to FunctionStorage.

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

- SPCachedFactory.h