alpaka
Abstraction Library for Parallel Kernel Acceleration
Loading...
Searching...
No Matches
alpaka::trait::IsKernelArgumentTriviallyCopyable< T, typename > Struct Template Reference

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

#include <trait.hpp>

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

Detailed Description

template<typename T, typename = void>
struct alpaka::trait::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 equivalent to using memcpy to duplicate the object. An existing destructor must be free of side effects.

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

Template Parameters
Ttype to check

Definition at line 79 of file trait.hpp.


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