Sauce-0.10.1
A C++ Dependency Injection Framework
Public Member Functions | List of all members
sauce::internal::DisposalDeleter< Iface, Disposal > Class Template Reference

A smart pointer deleter that diposes with the given disposal. More...

#include <sauce/internal/disposal_deleter.h>

Public Member Functions

 DisposalDeleter (DisposalPtr disposal)
 
void operator() (Iface *iface) const
 Cast and dispose the given Iface instance. More...
 

Detailed Description

template<typename Iface, typename Disposal>
class sauce::internal::DisposalDeleter< Iface, Disposal >

A smart pointer deleter that diposes with the given disposal.

Constructor & Destructor Documentation

◆ DisposalDeleter()

template<typename Iface , typename Disposal >
sauce::internal::DisposalDeleter< Iface, Disposal >::DisposalDeleter ( DisposalPtr  disposal)
inline
20 :
21 disposal(disposal) {}

Member Function Documentation

◆ operator()()

template<typename Iface , typename Disposal >
void sauce::internal::DisposalDeleter< Iface, Disposal >::operator() ( Iface *  iface) const
inline

Cast and dispose the given Iface instance.

26 {
27 disposal->dispose(iface);
28 }

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