alpaka
Abstraction Library for Parallel Kernel Acceleration
Loading...
Searching...
No Matches
alpaka::internal::CopyConstructableDataSource< TDataSource > Struct Template Reference

Specialize the trait for DataSource class if the object is copyable. More...

#include <trait.hpp>

Inheritance diagram for alpaka::internal::CopyConstructableDataSource< TDataSource >:

Detailed Description

template<typename TDataSource>
struct alpaka::internal::CopyConstructableDataSource< TDataSource >

Specialize the trait for DataSource class if the object is copyable.

Template Parameters
TDataSourceThe DataSource class.

The trait is used in the alpaka::internal::concepts::CopyConstructableDataSource concept to check whether the copy constructor respects the const correctness of the data type.

Example specialization:

template<typename T_Type>
struct CopyConstructableDataSource<Storage<T_Type> : std::true_type {
using InnerMutable = Storage<std::remove_const_t<T_Type>>;
using InnerConst = Storage<std::add_const_t<T_Type>>;
};
Specialize the trait for DataSource class if the object is copyable.
Definition trait.hpp:67

Definition at line 66 of file trait.hpp.


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