kokkos-execution 0.0.1
Loading...
Searching...
No Matches
Tests::Utils::Functors::ThrowsWhenCopied Struct Reference

This helper struct throws when copy constructed. More...

#include <throws_when_copied.hpp>

Public Member Functions

 ThrowsWhenCopied ()=default
ThrowsWhenCopiedoperator= (const ThrowsWhenCopied &)=default
 ThrowsWhenCopied (ThrowsWhenCopied &&)=default
ThrowsWhenCopiedoperator= (ThrowsWhenCopied &&)=default
 ~ThrowsWhenCopied ()=default
 ThrowsWhenCopied (const ThrowsWhenCopied &)
void operator() () const

Detailed Description

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.

Constructor & Destructor Documentation

◆ ThrowsWhenCopied() [1/3]

Tests::Utils::Functors::ThrowsWhenCopied::ThrowsWhenCopied ( )
default

◆ ThrowsWhenCopied() [2/3]

Tests::Utils::Functors::ThrowsWhenCopied::ThrowsWhenCopied ( ThrowsWhenCopied && )
default

References ThrowsWhenCopied().

◆ ~ThrowsWhenCopied()

Tests::Utils::Functors::ThrowsWhenCopied::~ThrowsWhenCopied ( )
default

◆ ThrowsWhenCopied() [3/3]

Tests::Utils::Functors::ThrowsWhenCopied::ThrowsWhenCopied ( const ThrowsWhenCopied & )
inline

Definition at line 37 of file throws_when_copied.hpp.

References ThrowsWhenCopied().

Member Function Documentation

◆ operator()()

void Tests::Utils::Functors::ThrowsWhenCopied::operator() ( ) const
inline

Definition at line 42 of file throws_when_copied.hpp.

◆ operator=() [1/2]

ThrowsWhenCopied & Tests::Utils::Functors::ThrowsWhenCopied::operator= ( const ThrowsWhenCopied & )
default

References ThrowsWhenCopied().

◆ operator=() [2/2]

ThrowsWhenCopied & Tests::Utils::Functors::ThrowsWhenCopied::operator= ( ThrowsWhenCopied && )
default

References ThrowsWhenCopied().


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