allocator_delete

Synopsis

Declared in <folly/Memory.h>

template<typename Alloc>
class allocator_delete;

Description

A deleter which automatically works with a given allocator.

Derives from the allocator to take advantage of the empty base optimization when possible.

Member Functions

Name

Description

allocator_delete [constructor]

Constructors

operator=

Assignment operators

get_allocator

Return the underlying allocator.

operator()

Destroy and deallocate the object at p using the allocator.

Created with MrDocs