4#include <OsoMemoryProfiler/CogsMemoryProfile.h>
14 template<
class T, Cogs::MemBlockType memType>
21 using size_type =
typename std::allocator<T>::size_type;
34 OsoMP_Allocate(uint8_t(memType), p, n,
nullptr, 0);
42 OsoMP_Free(uint8_t(memType), p,
nullptr, 0);
44 alloc.deallocate(p, n);
51 template<
class T1, Cogs::MemBlockType memType1,
class T2, Cogs::MemBlockType memType2>
54 return memType1 == memType2 && lhs.alloc == rhs.alloc;
Definition: Allocator.h:14
bool operator==(const MemTypeAllocator< T1, memType1 > &lhs, const MemTypeAllocator< T2, memType2 > &rhs) noexcept
Definition: MemTypeAllocator.h:52
Definition: MemTypeAllocator.h:48
MemTypeAllocator< U, memType > other
Definition: MemTypeAllocator.h:48
Definition: MemTypeAllocator.h:16
std::allocator< T > alloc
Definition: MemTypeAllocator.h:17
pointer allocate(size_type n)
Definition: MemTypeAllocator.h:30
T * pointer
Definition: MemTypeAllocator.h:20
MemTypeAllocator(const MemTypeAllocator< U, memType > &other)
Definition: MemTypeAllocator.h:28
T value_type
Definition: MemTypeAllocator.h:19
typename std::allocator< T >::size_type size_type
Definition: MemTypeAllocator.h:21
void deallocate(T *p, size_type n)
Definition: MemTypeAllocator.h:39
MemTypeAllocator()=default
MemTypeAllocator(const MemTypeAllocator &other)
Definition: MemTypeAllocator.h:25