alpaka
Abstraction Library for Parallel Kernel Acceleration
Loading...
Searching...
No Matches
alpaka::internal::concepts::CopyConstructableDataSource Concept Reference

Check whether the copy constructor of the data source T respects the const correctness of the data type. More...

#include <CopyConstructableDataSource.hpp>

Concept definition

template<typename T>
concept CopyConstructableDataSource = requires {
Check whether the copy constructor of the data source T respects the const correctness of the data ty...
Specialize the trait for DataSource class if the object is copyable.
Definition trait.hpp:67

copy constructor inner mutable -> inner mutable

requires std::constructible_from<

copy constructor inner const -> inner const

requires std::constructible_from<

copy constructor inner mutable -> inner const

requires std::constructible_from<

not allowed: copy constructor inner const -> inner mutable

requires !std::constructible_from<

copy assignment inner mutable -> inner mutable

requires std::assignable_from<

copy assignment inner const -> inner const

requires std::assignable_from<

copy assignment inner mutable -> inner const

requires std::assignable_from<

not allowed: copy assignment inner const -> inner mutable

requires !std::assignable_from<
}

Detailed Description

Check whether the copy constructor of the data source T respects the const correctness of the data type.

Data sources have a data type that can be mutable or constant (marked with const). The following copies or assignments to a new object with the corresponding data type are possible:

  • mutable -> mutable
  • const -> const
  • mutable -> const

Definition at line 23 of file CopyConstructableDataSource.hpp.