alpaka
Abstraction Library for Parallel Kernel Acceleration
alpaka::IsKernelArgumentTriviallyCopyable< T, typename > Struct Template Reference

Check if a type used as kernel argument is trivially copyable. More...

#include <Traits.hpp>

+ Inheritance diagram for alpaka::IsKernelArgumentTriviallyCopyable< T, typename >:

Detailed Description

template<typename T, typename = void>
struct alpaka::IsKernelArgumentTriviallyCopyable< T, typename >

Check if a type used as kernel argument is trivially copyable.

Attention
In case this trait is specialized for a user type the user should be sure that the result of calling the copy constructor is equal to use memcpy to duplicate the object. An existing destructor should be free of side effects.

It's implementation defined whether the closure type of a lambda is trivially copyable. Therefor the default implementation is true for trivially copyable or empty (stateless) types.

Template Parameters
Ttype to check

Definition at line 261 of file Traits.hpp.


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