This helper struct throws when copy constructed.
More...
#include <throws_when_copied.hpp>
This helper struct throws when copy constructed.
It can be used to throw while passing it to Kokkos, since it always copies as seen e.g. in https://github.com/kokkos/kokkos/blob/1e75c539491b8ce46c4671ce2e2275e15f1c27bc/core/src/Kokkos_Parallel.hpp#L142-L144
Definition at line 30 of file throws_when_copied.hpp.
◆ ThrowsWhenCopied() [1/3]
| Tests::Utils::Functors::ThrowsWhenCopied::ThrowsWhenCopied |
( |
| ) |
|
|
default |
◆ ThrowsWhenCopied() [2/3]
| Tests::Utils::Functors::ThrowsWhenCopied::ThrowsWhenCopied |
( |
ThrowsWhenCopied && | | ) |
|
|
default |
◆ ~ThrowsWhenCopied()
| Tests::Utils::Functors::ThrowsWhenCopied::~ThrowsWhenCopied |
( |
| ) |
|
|
default |
◆ ThrowsWhenCopied() [3/3]
| Tests::Utils::Functors::ThrowsWhenCopied::ThrowsWhenCopied |
( |
const ThrowsWhenCopied & | | ) |
|
|
inline |
◆ operator()()
| void Tests::Utils::Functors::ThrowsWhenCopied::operator() |
( |
| ) |
const |
|
inline |
◆ operator=() [1/2]
◆ operator=() [2/2]
The documentation for this struct was generated from the following file: