TRIQS/nda 1.3.0
Multi-dimensional array library for C++
Loading...
Searching...
No Matches
Memory policies

Detailed Description

Various memory managing policies that can be used with nda::basic_array and nda::basic_array_view.

Classes

struct  nda::borrowed< AdrSp >
 Memory policy using an nda::mem::handle_borrowed. More...
 
struct  nda::heap_basic< Allocator >
 Memory policy using an nda::mem::handle_heap. More...
 
struct  nda::shared
 Memory policy using an nda::mem::handle_shared. More...
 
struct  nda::sso< Size >
 Memory policy using an nda::mem::handle_sso. More...
 
struct  nda::stack< Size >
 Memory policy using an nda::mem::handle_stack. More...
 

Typedefs

template<mem::AddressSpace AdrSp = mem::Host>
using nda::heap = heap_basic<mem::mallocator<AdrSp>>
 Alias template of the nda::heap_basic policy using an nda::mem::mallocator.
 

Typedef Documentation

◆ heap

template<mem::AddressSpace AdrSp = mem::Host>
using nda::heap = heap_basic<mem::mallocator<AdrSp>>

#include <nda/mem/policies.hpp>

Alias template of the nda::heap_basic policy using an nda::mem::mallocator.

Template Parameters
AdrSpnda::mem::AddressSpace in which the memory is allocated.

Definition at line 63 of file policies.hpp.