proxygen
folly::CxxHugePageAllocator< T > Class Template Reference

#include <JemallocHugePageAllocator.h>

Public Types

using value_type = T
 

Public Member Functions

 CxxHugePageAllocator ()
 
template<typename U >
 CxxHugePageAllocator (CxxHugePageAllocator< U > const &)
 
Tallocate (std::size_t n)
 
void deallocate (T *p, std::size_t n)
 

Private Types

using Self = CxxHugePageAllocator< T >
 

Friends

bool operator== (Self const &, Self const &) noexcept
 
bool operator!= (Self const &, Self const &) noexcept
 

Detailed Description

template<typename T>
class folly::CxxHugePageAllocator< T >

Definition at line 89 of file JemallocHugePageAllocator.h.

Member Typedef Documentation

template<typename T >
using folly::CxxHugePageAllocator< T >::Self = CxxHugePageAllocator<T>
private

Definition at line 91 of file JemallocHugePageAllocator.h.

template<typename T >
using folly::CxxHugePageAllocator< T >::value_type = T

Definition at line 94 of file JemallocHugePageAllocator.h.

Constructor & Destructor Documentation

template<typename T >
folly::CxxHugePageAllocator< T >::CxxHugePageAllocator ( )
inline

Definition at line 96 of file JemallocHugePageAllocator.h.

96 {}
template<typename T >
template<typename U >
folly::CxxHugePageAllocator< T >::CxxHugePageAllocator ( CxxHugePageAllocator< U > const &  )
inlineexplicit

Definition at line 99 of file JemallocHugePageAllocator.h.

99 {}

Member Function Documentation

template<typename T >
T* folly::CxxHugePageAllocator< T >::allocate ( std::size_t  n)
inline

Definition at line 101 of file JemallocHugePageAllocator.h.

References folly::JemallocHugePageAllocator::allocate(), and folly::T.

101  {
102  return static_cast<T*>(JemallocHugePageAllocator::allocate(sizeof(T) * n));
103  }
folly::std T
template<typename T >
void folly::CxxHugePageAllocator< T >::deallocate ( T p,
std::size_t  n 
)
inline

Definition at line 104 of file JemallocHugePageAllocator.h.

References folly::JemallocHugePageAllocator::deallocate(), and folly::T.

104  {
106  }
folly::std T
static void deallocate(void *p, size_t=0)

Friends And Related Function Documentation

template<typename T >
bool operator!= ( Self const &  ,
Self const &   
)
friend

Definition at line 111 of file JemallocHugePageAllocator.h.

111  {
112  return false;
113  }
template<typename T >
bool operator== ( Self const &  ,
Self const &   
)
friend

Definition at line 108 of file JemallocHugePageAllocator.h.

108  {
109  return true;
110  }

The documentation for this class was generated from the following file: