|
kokkos-execution 0.0.1
|
A minimal tracking allocator. More...
#include <tracking_allocator.hpp>
Public Types | |
| using | value_type = T |
Public Member Functions | |
| T * | allocate (std::size_t n) |
| void | deallocate (T *ptr, std::size_t size) |
Public Attributes | |
| std::atomic< size_t > * | count |
Friends | |
| constexpr auto | operator<=> (const TrackingAllocator &, const TrackingAllocator &) noexcept=default |
A minimal tracking allocator.
It atomically counts allocations.
Definition at line 16 of file tracking_allocator.hpp.
| using Tests::Utils::TrackingAllocator< T >::value_type = T |
Definition at line 17 of file tracking_allocator.hpp.
|
inline |
Definition at line 21 of file tracking_allocator.hpp.
|
inline |
Definition at line 26 of file tracking_allocator.hpp.
|
friend |
| std::atomic<size_t>* Tests::Utils::TrackingAllocator< T >::count |
Definition at line 19 of file tracking_allocator.hpp.