Template Numerical Library: TNL::allocates_host_accessible_data< Allocator > Struct Template Reference

Template Numerical Library version\ main:be7e16d88

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 >:
[legend]
Collaboration diagram for TNL::allocates_host_accessible_data< Allocator >:
[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

  Allocator | a type to checky

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

- src/TNL/Allocators/Traits.h