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

#include <secure.h>

Inheritance diagram for secure_allocator< T >:
[legend]
Collaboration diagram for secure_allocator< T >:
[legend]

Classes

struct  rebind
 

Public Types

typedef std::allocator< T > base
 
typedef base::size_type size_type
 
typedef base::difference_type difference_type
 
typedef base::pointer pointer
 
typedef base::const_pointer const_pointer
 
typedef base::reference reference
 
typedef base::const_reference const_reference
 
typedef base::value_type value_type
 

Public Member Functions

 secure_allocator () noexcept
 
 secure_allocator (const secure_allocator &a) noexcept
 
template<typename U >
 secure_allocator (const secure_allocator< U > &a) noexcept
 
 ~secure_allocator () noexcept
 
T * allocate (std::size_t n, const void *hint=0)
 
void deallocate (T *p, std::size_t n)
 

Detailed Description

template<typename T>
struct secure_allocator< T >

Definition at line 19 of file secure.h.

Member Typedef Documentation

◆ base

template<typename T>
typedef std::allocator<T> secure_allocator< T >::base

Definition at line 21 of file secure.h.

◆ const_pointer

template<typename T>
typedef base::const_pointer secure_allocator< T >::const_pointer

Definition at line 25 of file secure.h.

◆ const_reference

template<typename T>
typedef base::const_reference secure_allocator< T >::const_reference

Definition at line 27 of file secure.h.

◆ difference_type

template<typename T>
typedef base::difference_type secure_allocator< T >::difference_type

Definition at line 23 of file secure.h.

◆ pointer

template<typename T>
typedef base::pointer secure_allocator< T >::pointer

Definition at line 24 of file secure.h.

◆ reference

template<typename T>
typedef base::reference secure_allocator< T >::reference

Definition at line 26 of file secure.h.

◆ size_type

template<typename T>
typedef base::size_type secure_allocator< T >::size_type

Definition at line 22 of file secure.h.

◆ value_type

template<typename T>
typedef base::value_type secure_allocator< T >::value_type

Definition at line 28 of file secure.h.

Constructor & Destructor Documentation

◆ secure_allocator() [1/3]

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

Definition at line 29 of file secure.h.

◆ secure_allocator() [2/3]

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

Definition at line 30 of file secure.h.

◆ secure_allocator() [3/3]

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

Definition at line 32 of file secure.h.

◆ ~secure_allocator()

template<typename T>
secure_allocator< T >::~secure_allocator ( )
inlinenoexcept

Definition at line 35 of file secure.h.

Member Function Documentation

◆ allocate()

template<typename T>
T* secure_allocator< T >::allocate ( std::size_t  n,
const void *  hint = 0 
)
inline

Definition at line 41 of file secure.h.

Here is the call graph for this function:

◆ deallocate()

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

Definition at line 50 of file secure.h.

Here is the call graph for this function:

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