Template Numerical Library version\ main:f17d0c8
Loading...
Searching...
No Matches
TNL::allocates_host_accessible_data< Allocator > Struct Template Reference

A trait-class that determines if an allocator allocates data that are directly accessible from the host code without the need for explicit copy operations. More...

#include <TNL/Allocators/Traits.h>

Inheritance diagram for TNL::allocates_host_accessible_data< Allocator >:
Inheritance graph
[legend]
Collaboration diagram for TNL::allocates_host_accessible_data< Allocator >:
Collaboration graph
[legend]

Detailed Description

template<typename Allocator>
struct TNL::allocates_host_accessible_data< Allocator >

A trait-class that determines if an allocator allocates data that are directly accessible from the host code without the need for explicit copy operations.

The trait is equivalent to std::true_type by default and each definition of an allocator that does not meet the above condition must be accompanied by a template specialization for this trait.

Template Parameters
Allocatora type to checky

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