GRPC C++  1.62.0
Public Types | Public Member Functions
grpc_event_engine::experimental::MemoryAllocator::Container< T > Class Template Reference

A C++ allocator for containers of T. More...

#include <memory_allocator.h>

Public Types

using value_type = T
 

Public Member Functions

 Container (MemoryAllocator *underlying_allocator)
 Construct the allocator: underlying_allocator is borrowed, and must outlive this object. More...
 
template<typename U >
 Container (const Container< U > &other)
 
MemoryAllocatorunderlying_allocator () const
 
T * allocate (size_t n)
 
void deallocate (T *p, size_t n)
 

Detailed Description

template<typename T>
class grpc_event_engine::experimental::MemoryAllocator::Container< T >

A C++ allocator for containers of T.

Member Typedef Documentation

◆ value_type

Constructor & Destructor Documentation

◆ Container() [1/2]

template<typename T >
grpc_event_engine::experimental::MemoryAllocator::Container< T >::Container ( MemoryAllocator underlying_allocator)
inlineexplicit

Construct the allocator: underlying_allocator is borrowed, and must outlive this object.

◆ Container() [2/2]

template<typename T >
template<typename U >
grpc_event_engine::experimental::MemoryAllocator::Container< T >::Container ( const Container< U > &  other)
inlineexplicit

Member Function Documentation

◆ allocate()

template<typename T >
T* grpc_event_engine::experimental::MemoryAllocator::Container< T >::allocate ( size_t  n)
inline

◆ deallocate()

template<typename T >
void grpc_event_engine::experimental::MemoryAllocator::Container< T >::deallocate ( T *  p,
size_t  n 
)
inline

◆ underlying_allocator()

template<typename T >
MemoryAllocator* grpc_event_engine::experimental::MemoryAllocator::Container< T >::underlying_allocator ( ) const
inline

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