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

#include <secure.h>

Public Types

using value_type = T
 

Public Member Functions

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

Friends

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

Detailed Description

template<typename T>
struct secure_allocator< T >

Definition at line 20 of file secure.h.

Member Typedef Documentation

◆ value_type

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

Definition at line 21 of file secure.h.

Constructor & Destructor Documentation

◆ secure_allocator() [1/2]

template<typename T >
secure_allocator< T >::secure_allocator ( )
default

◆ secure_allocator() [2/2]

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

Definition at line 25 of file secure.h.

Member Function Documentation

◆ allocate()

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

Definition at line 27 of file secure.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ deallocate()

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

Definition at line 36 of file secure.h.

Here is the call graph for this function:
Here is the caller graph for this function:

Friends And Related Function Documentation

◆ operator!=

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

Definition at line 50 of file secure.h.

◆ operator==

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

Definition at line 45 of file secure.h.


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