19 #ifndef __SECMEM_SECMEMPP_H__
20 #define __SECMEM_SECMEMPP_H__
22 #include "../secmem/secmem.h"
31 typedef size_t size_type;
32 typedef ptrdiff_t difference_type;
34 typedef const T* const_pointer;
36 typedef const T& const_reference;
46 pointer address( reference value )
const {
49 const_pointer address( const_reference value )
const {
55 alloc(
const alloc & ) {}
56 template <
typename U> alloc(
const alloc<U> & ) {}
61 size_type max_size()
const {
62 return secmem_get_max_size();
65 pointer allocate( size_type n,
void * =0 ) {
66 return static_cast<pointer
>( secmem_malloc( n *
sizeof(T) ) );
69 void deallocate( pointer p, size_type ) {
74 void construct( pointer p,
const T & value ) {
78 void destruct( pointer p ) {
84 template <
typename T1,
typename T2>
85 bool operator==(
const alloc<T1> &,
const alloc<T2> & ) {
return true; }
86 template <
typename T1,
typename T2>
87 bool operator!=(
const alloc<T1> &,
const alloc<T2> & ) {
return false; }
Definition: secmem++.h:28
Definition: secmem++.h:41