Bitcoin ABC 0.26.3
P2P Digital Currency
Loading...
Searching...
No Matches
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

using base = std::allocator< T >
 
using traits = std::allocator_traits< base >
 
using size_type = typename traits::size_type
 
using difference_type = typename traits::difference_type
 
using pointer = typename traits::pointer
 
using const_pointer = typename traits::const_pointer
 
using value_type = typename traits::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 >
using secure_allocator< T >::base = std::allocator<T>

Definition at line 20 of file secure.h.

◆ const_pointer

template<typename T >
using secure_allocator< T >::const_pointer = typename traits::const_pointer

Definition at line 25 of file secure.h.

◆ difference_type

template<typename T >
using secure_allocator< T >::difference_type = typename traits::difference_type

Definition at line 23 of file secure.h.

◆ pointer

template<typename T >
using secure_allocator< T >::pointer = typename traits::pointer

Definition at line 24 of file secure.h.

◆ size_type

template<typename T >
using secure_allocator< T >::size_type = typename traits::size_type

Definition at line 22 of file secure.h.

◆ traits

template<typename T >
using secure_allocator< T >::traits = std::allocator_traits<base>

Definition at line 21 of file secure.h.

◆ value_type

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

Definition at line 26 of file secure.h.

Constructor & Destructor Documentation

◆ secure_allocator() [1/3]

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

Definition at line 27 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 28 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 30 of file secure.h.

◆ ~secure_allocator()

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

Definition at line 31 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 36 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 45 of file secure.h.

Here is the call graph for this function:

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