aws-crt-cpp
C++ wrapper around the aws-c-* libraries. Provides Cross-Platform Transport Protocols and SSL/TLS implementations for C++.
Classes | Public Types | Public Member Functions | Public Attributes | List of all members
Aws::Crt::StlAllocator< T > Class Template Reference

#include <StlAllocator.h>

Inheritance diagram for Aws::Crt::StlAllocator< T >:

Classes

struct  rebind
 

Public Types

using Base = std::allocator< T >
 
using size_type = std::size_t
 
using RawPointer = typename std::allocator_traits< std::allocator< T >>::pointer
 

Public Member Functions

 StlAllocator () noexcept
 
 StlAllocator (Allocator *allocator) noexcept
 
 StlAllocator (const StlAllocator< T > &a) noexcept
 
template<class U >
 StlAllocator (const StlAllocator< U > &a) noexcept
 
 ~StlAllocator ()
 
RawPointer allocate (size_type n, const void *hint=nullptr)
 
void deallocate (RawPointer p, size_type)
 

Public Attributes

Allocatorm_allocator
 

Detailed Description

template<typename T>
class Aws::Crt::StlAllocator< T >

Stateful allocator variant that uses an underlying CRT allocator

Template Parameters
Ttype that allocator can allocate

Member Typedef Documentation

template<typename T>
using Aws::Crt::StlAllocator< T >::Base = std::allocator<T>
template<typename T>
using Aws::Crt::StlAllocator< T >::RawPointer = typename std::allocator_traits<std::allocator<T>>::pointer
template<typename T>
using Aws::Crt::StlAllocator< T >::size_type = std::size_t

Constructor & Destructor Documentation

template<typename T>
Aws::Crt::StlAllocator< T >::StlAllocator ( )
inlinenoexcept
template<typename T>
Aws::Crt::StlAllocator< T >::StlAllocator ( Allocator allocator)
inlinenoexcept
template<typename T>
Aws::Crt::StlAllocator< T >::StlAllocator ( const StlAllocator< T > &  a)
inlinenoexcept
template<typename T>
template<class U >
Aws::Crt::StlAllocator< T >::StlAllocator ( const StlAllocator< U > &  a)
inlinenoexcept
template<typename T>
Aws::Crt::StlAllocator< T >::~StlAllocator ( )
inline

Member Function Documentation

template<typename T>
RawPointer Aws::Crt::StlAllocator< T >::allocate ( size_type  n,
const void *  hint = nullptr 
)
inline
template<typename T>
void Aws::Crt::StlAllocator< T >::deallocate ( RawPointer  p,
size_type   
)
inline

Member Data Documentation

template<typename T>
Allocator* Aws::Crt::StlAllocator< T >::m_allocator

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