Direct-BT v3.3.0-1-gc2d430c
Direct-BT - Direct Bluetooth Programming.
|
A simple secure allocator for integral types using POSIX C functions: ::malloc()
and ::free()
.
More...
#include <callocator_sec.hpp>
Classes | |
struct | rebind |
Public Types | |
typedef const T * | const_pointer |
typedef const T & | const_reference |
typedef std::ptrdiff_t | difference_type |
typedef std::true_type | is_always_equal |
typedef T * | pointer |
typedef std::true_type | propagate_on_container_move_assignment |
typedef T & | reference |
typedef std::size_t | size_type |
typedef T | value_type |
Public Member Functions | |
callocator_sec () noexcept=default | |
callocator_sec (const callocator_sec &) noexcept | |
template<typename U > | |
callocator_sec (const callocator_sec< U > &) noexcept | |
~callocator_sec ()=default | |
value_type * | allocate (std::size_t n) |
value_type * | allocate (std::size_t n, const void *) |
void | deallocate (value_type *p, std::size_t n) |
A simple secure allocator for integral types using POSIX C functions: ::malloc()
and ::free()
.
callocator_sec is similar to callocator, but
This class shall be compliant with C++ named requirements for Allocator.
Not implementing deprecated (C++17) and removed (C++20) methods: address(), max_size(), construct() and destroy().
Definition at line 51 of file callocator_sec.hpp.
typedef T jau::callocator_sec< T, >::value_type |
Definition at line 55 of file callocator_sec.hpp.
typedef std::size_t jau::callocator_sec< T, >::size_type |
Definition at line 56 of file callocator_sec.hpp.
typedef std::ptrdiff_t jau::callocator_sec< T, >::difference_type |
Definition at line 57 of file callocator_sec.hpp.
typedef std::true_type jau::callocator_sec< T, >::propagate_on_container_move_assignment |
Definition at line 58 of file callocator_sec.hpp.
typedef std::true_type jau::callocator_sec< T, >::is_always_equal |
Definition at line 61 of file callocator_sec.hpp.
typedef T* jau::callocator_sec< T, >::pointer |
Definition at line 64 of file callocator_sec.hpp.
typedef const T* jau::callocator_sec< T, >::const_pointer |
Definition at line 65 of file callocator_sec.hpp.
typedef T& jau::callocator_sec< T, >::reference |
Definition at line 66 of file callocator_sec.hpp.
typedef const T& jau::callocator_sec< T, >::const_reference |
Definition at line 67 of file callocator_sec.hpp.
|
defaultnoexcept |
|
inlinenoexcept |
Definition at line 82 of file callocator_sec.hpp.
|
inlinenoexcept |
Definition at line 92 of file callocator_sec.hpp.
|
default |
|
inline |
Definition at line 103 of file callocator_sec.hpp.
|
inline |
Definition at line 113 of file callocator_sec.hpp.
|
inline |
Definition at line 124 of file callocator_sec.hpp.