memory
Member Functions
unique_base_ptr< BaseType, RawAllocator > Class Template Reference

Detailed Description

template<class BaseType, class RawAllocator>
class foonathan::memory::unique_base_ptr< BaseType, RawAllocator >

A std::unique_ptr that deletes using a RawAllocator and allows polymorphic types.

It can only be created by converting a regular unique pointer to a pointer to a derived class, and is meant to be used inside containers. It is an alias template using allocator_polymorphic_deleter as Deleter class.

Note
It has a relatively high overhead, so only use it if you have to.

Member Functions

T * operator-> ()
 STL member.
 

Member Functions

◆ operator->()

T* operator->
inherited

STL member.