Namespaces
Variants
Views
Actions

std::get_deleter

From cppreference.com
< cpp‎ | memory‎ | shared ptr
Revision as of 16:02, 2 November 2012 by P12bot (Talk | contribs)

 
 
 
 
 
template<class Deleter, class T>
Deleter* get_deleter(const shared_ptr<T> & p) const;

Access to the p's deleter. The std::shared_ptr must have been created with one of the constructors that take a deleter as a parameter. Otherwise, it will return 0.

Parameters

(none)

Return value

A pointer to the owned deleter or 0.

See also

std::shared_ptr constructors
(public member function)