27 #ifndef ASTROTYPES_POINTERALLOCATOR_H
28 #define ASTROTYPES_POINTERALLOCATOR_H
31 namespace astrotypes {
37 template<
typename LocalType>
76 template<
typename FirstType,
typename SecondType>
85 template<
typename FirstType,
typename SecondType>
94 #endif // ASTROTYPES_POINTERALLOCATOR_H
void deallocate(value_type *, std::size_t) noexcept
Empty deallocator.
Dummy allocator that stores a pointer to a previously allocated area of memory.
bool operator!=(PointerAllocator< FirstType > const &, PointerAllocator< SecondType > const &) noexcept
Allows to test for diversity of PointerAllocator objects.
bool operator==(PointerAllocator< FirstType > const &, PointerAllocator< SecondType > const &) noexcept
Allows to test for equivalence of PointerAllocator objects.
value_type * allocate(std::size_t)
Returns a pointer to the previously allocated memory.
PointerAllocator(value_type *pointer) noexcept
Construct the allocator from a pointer to previously allocated memory.