SysAllocator

Synopsis

Declared in <folly/memory/Allocator.h>

template<typename T>
class SysAllocator;

Description

Resembles std::allocator, the default Allocator, but wraps std::malloc and std::free.

Type Aliases

Name

Description

value_type

The type of object allocated by this allocator.

Member Functions

Name

Description

SysAllocator [constructor]

Constructors

allocate

Allocates storage for count objects of type T.

deallocate

Deallocates storage previously obtained from allocate.

Friends

Name

Description

folly::operator!=

Compares two SysAllocator instances for inequality.

folly::operator==

Compares two SysAllocator instances for equality.

Created with MrDocs