35#ifndef _BLAZE_UTIL_NULLALLOCATOR_H_
36#define _BLAZE_UTIL_NULLALLOCATOR_H_
82 template<
typename U >
92 NullAllocator() =
default;
94 template<
typename U >
103 inline void deallocate( T* ptr,
size_t numObjects )
noexcept;
123template<
typename T >
124template<
typename U >
125inline NullAllocator<T>::NullAllocator(
const NullAllocator<U>& allocator )
148template<
typename T >
153 return static_cast<T*
>( nullptr );
169template<
typename T >
188template<
typename T1,
typename T2 >
191template<
typename T1,
typename T2 >
Header file for the MAYBE_UNUSED function template.
Header file for memory allocation and deallocation functionality.
Allocator returning nullptr.
Definition NullAllocator.h:66
size_t SizeType
Size type of the null allocator.
Definition NullAllocator.h:70
void deallocate(T *ptr, size_t numObjects) noexcept
Deallocation of memory.
Definition NullAllocator.h:170
SizeType size_type
Size type of the null allocator.
Definition NullAllocator.h:75
T ValueType
Type of the allocated values.
Definition NullAllocator.h:69
NullAllocator(const NullAllocator< U > &)
Conversion constructor from different NullAllocator instances.
Definition NullAllocator.h:125
ptrdiff_t DifferenceType
Difference type of the null allocator.
Definition NullAllocator.h:71
ValueType value_type
Type of the allocated values.
Definition NullAllocator.h:74
T * allocate(size_t numObjects)
Performs no memory allocation and returns nullptr.
Definition NullAllocator.h:149
DifferenceType difference_type
Difference type of the null allocator.
Definition NullAllocator.h:76
Pointer difference type of the Blaze library.
Size type of the Blaze library.
constexpr bool operator==(const NegativeAccuracy< A > &lhs, const T &rhs)
Equality comparison between a NegativeAccuracy object and a floating point value.
Definition Accuracy.h:253
constexpr bool operator!=(const NegativeAccuracy< A > &lhs, const T &rhs)
Inequality comparison between a NegativeAccuracy object and a floating point value.
Definition Accuracy.h:293
constexpr void MAYBE_UNUSED(const Args &...)
Suppression of unused parameter warnings.
Definition MaybeUnused.h:81
Implementation of the NullAllocator rebind mechanism.
Definition NullAllocator.h:84
NullAllocator< U > other
Type of the other allocator.
Definition NullAllocator.h:85
Header file for basic type definitions.