Direct-BT
2.3.1
Direct-BT - Direct Bluetooth Programming.
|
Go to the documentation of this file.
25 #ifndef C_ALLOCATOR_HPP
26 #define C_ALLOCATOR_HPP
64 #if __cplusplus > 201703L
72 #if __cplusplus > 201703L
82 #if __cplusplus > 201703L
88 #if __cplusplus <= 201703L
95 #if __cplusplus > 201703L
108 realloc(
reinterpret_cast<void*
>(p), new_size *
sizeof(
value_type) ) );
111 #if __cplusplus > 201703L
114 free(
reinterpret_cast<void*
>( p ) );
119 free(
reinterpret_cast<void*
>( p ) );
126 #if __cplusplus > 201703L
127 template <
class T1,
class T2>
128 constexpr
bool operator==(
const callocator<T1>& lhs,
const callocator<T2>& rhs) noexcept {
133 return lhs.memory_usage == rhs.memory_usage;
141 template <
class T1,
class T2>
147 return lhs.memory_usage == rhs.memory_usage;
154 template <
class T1,
class T2>
162 #endif // TEST_ALLOCATOR_HPP
callocator(const callocator< U > &other) noexcept
callocator(const callocator &other) noexcept
constexpr value_type * reallocate(value_type *p, std::size_t old_size, std::size_t new_size)
void deallocate(value_type *p, std::size_t n)
value_type * allocate(std::size_t n)
A simple allocator using POSIX C functions: ::malloc(), ::free() and ::realloc().
bool operator!=(const callocator< T1 > &lhs, const callocator< T2 > &rhs) noexcept
value_type * allocate(std::size_t n, const void *hint)
bool operator==(const callocator< T1 > &lhs, const callocator< T2 > &rhs) noexcept