35#ifndef _BLAZE_UTIL_NULLALLOCATOR_H_
36#define _BLAZE_UTIL_NULLALLOCATOR_H_
82 template<
typename U >
94 template<
typename U >
102 inline T*
allocate (
size_t numObjects );
103 inline void deallocate( T* ptr,
size_t numObjects )
noexcept;
123template<
typename T >
124template<
typename U >
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
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
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
Header file for basic type definitions.