Bitcoin Core 28.99.0
P2P Digital Currency
Public Types | Public Member Functions | Friends | List of all members
zero_after_free_allocator< T > Struct Template Reference

#include <zeroafterfree.h>

Public Types

using value_type = T
 

Public Member Functions

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

Friends

template<typename U >
bool operator== (const zero_after_free_allocator &, const zero_after_free_allocator< U > &) noexcept
 
template<typename U >
bool operator!= (const zero_after_free_allocator &, const zero_after_free_allocator< U > &) noexcept
 

Detailed Description

template<typename T>
struct zero_after_free_allocator< T >

Definition at line 15 of file zeroafterfree.h.

Member Typedef Documentation

◆ value_type

template<typename T >
using zero_after_free_allocator< T >::value_type = T

Definition at line 16 of file zeroafterfree.h.

Constructor & Destructor Documentation

◆ zero_after_free_allocator() [1/2]

template<typename T >
zero_after_free_allocator< T >::zero_after_free_allocator ( )
defaultnoexcept

◆ zero_after_free_allocator() [2/2]

template<typename T >
template<typename U >
zero_after_free_allocator< T >::zero_after_free_allocator ( const zero_after_free_allocator< U > &  )
inlinenoexcept

Definition at line 20 of file zeroafterfree.h.

Member Function Documentation

◆ allocate()

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

Definition at line 24 of file zeroafterfree.h.

◆ deallocate()

template<typename T >
void zero_after_free_allocator< T >::deallocate ( T p,
std::size_t  n 
)
inline

Definition at line 29 of file zeroafterfree.h.

Here is the call graph for this function:

Friends And Related Function Documentation

◆ operator!=

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

Definition at line 42 of file zeroafterfree.h.

◆ operator==

template<typename T >
template<typename U >
bool operator== ( const zero_after_free_allocator< T > &  ,
const zero_after_free_allocator< U > &   
)
friend

Definition at line 37 of file zeroafterfree.h.


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