CPPuddle
Loading...
Searching...
No Matches
cppuddle::memory_recycling::view_deleter< element_type, alloc_type > Struct Template Reference

#include <recycling_kokkos_view.hpp>

Public Member Functions

 view_deleter (alloc_type alloc, size_t total_elements)
void operator() (element_type *p)

Public Attributes

alloc_type allocator
size_t total_elements

Detailed Description

template<typename element_type, typename alloc_type>
struct cppuddle::memory_recycling::view_deleter< element_type, alloc_type >

Convienience struct to delete the view once the reference counting reaches 0

Constructor & Destructor Documentation

◆ view_deleter()

template<typename element_type, typename alloc_type>
cppuddle::memory_recycling::view_deleter< element_type, alloc_type >::view_deleter ( alloc_type alloc,
size_t total_elements )
inline

Member Function Documentation

◆ operator()()

template<typename element_type, typename alloc_type>
void cppuddle::memory_recycling::view_deleter< element_type, alloc_type >::operator() ( element_type * p)
inline

Member Data Documentation

◆ allocator

template<typename element_type, typename alloc_type>
alloc_type cppuddle::memory_recycling::view_deleter< element_type, alloc_type >::allocator

◆ total_elements

template<typename element_type, typename alloc_type>
size_t cppuddle::memory_recycling::view_deleter< element_type, alloc_type >::total_elements

The documentation for this struct was generated from the following file: