STL compatible huge page allocator, for use with STL‐style containers.

Synopsis

Declared in <folly/memory/JemallocHugePageAllocator.h>

template<typename T>
class CxxHugePageAllocator;

Type Aliases

Name

Description

value_type

The type of object allocated by this allocator.

Member Functions

Name

Description

CxxHugePageAllocator [constructor]

Constructors

allocate

Allocates storage for n objects from the huge page arena.

deallocate

Frees storage previously allocated from the huge page arena.

Friends

Name

Description

folly::operator!=

Compares two allocators for inequality.

folly::operator==

Compares two allocators for equality.

Template Parameters

Name

Description

T

The type of object to allocate.

Created with MrDocs