MySQL 9.3.0
Source Code Documentation
mysql_harness::SecureAllocator< T > Struct Template Reference

Adapter for SecureMemoryPool which can be used by the STL allocators. More...

#include <secure_allocator.h>

Classes

struct  rebind
 

Public Types

using value_type = T
 

Public Member Functions

constexpr SecureAllocator () noexcept=default
 
constexpr SecureAllocator (const SecureAllocator &) noexcept=default
 
constexpr SecureAllocator (SecureAllocator &&) noexcept=default
 
constexpr SecureAllocatoroperator= (const SecureAllocator &) noexcept=default
 
constexpr SecureAllocatoroperator= (SecureAllocator &&) noexcept=default
 
template<typename U >
constexpr SecureAllocator (const SecureAllocator< U > &) noexcept
 
Tallocate (std::size_t n)
 
void deallocate (T *p, std::size_t n) noexcept
 

Detailed Description

template<typename T>
struct mysql_harness::SecureAllocator< T >

Adapter for SecureMemoryPool which can be used by the STL allocators.

Member Typedef Documentation

◆ value_type

template<typename T >
using mysql_harness::SecureAllocator< T >::value_type = T

Constructor & Destructor Documentation

◆ SecureAllocator() [1/4]

template<typename T >
constexpr mysql_harness::SecureAllocator< T >::SecureAllocator ( )
constexprdefaultnoexcept

◆ SecureAllocator() [2/4]

template<typename T >
constexpr mysql_harness::SecureAllocator< T >::SecureAllocator ( const SecureAllocator< T > &  )
constexprdefaultnoexcept

◆ SecureAllocator() [3/4]

template<typename T >
constexpr mysql_harness::SecureAllocator< T >::SecureAllocator ( SecureAllocator< T > &&  )
constexprdefaultnoexcept

◆ SecureAllocator() [4/4]

template<typename T >
template<typename U >
constexpr mysql_harness::SecureAllocator< T >::SecureAllocator ( const SecureAllocator< U > &  )
inlineconstexprnoexcept

Member Function Documentation

◆ allocate()

template<typename T >
T * mysql_harness::SecureAllocator< T >::allocate ( std::size_t  n)
inline

◆ deallocate()

template<typename T >
void mysql_harness::SecureAllocator< T >::deallocate ( T p,
std::size_t  n 
)
inlinenoexcept

◆ operator=() [1/2]

template<typename T >
constexpr SecureAllocator & mysql_harness::SecureAllocator< T >::operator= ( const SecureAllocator< T > &  )
constexprdefaultnoexcept

◆ operator=() [2/2]

template<typename T >
constexpr SecureAllocator & mysql_harness::SecureAllocator< T >::operator= ( SecureAllocator< T > &&  )
constexprdefaultnoexcept

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