Template Numerical Library version\ main:c4e3186
Loading...
Searching...
No Matches
TNL::is_nested_trivially_copyable< T, typename > Struct Template Reference

Type trait for the types whose copy is equivalent to copying their object representation. More...

#include <TNL/TypeTraits.h>

Inheritance diagram for TNL::is_nested_trivially_copyable< T, typename >:
[legend]
Collaboration diagram for TNL::is_nested_trivially_copyable< T, typename >:
[legend]

Detailed Description

template<typename T, typename = void>
struct TNL::is_nested_trivially_copyable< T, typename >

Type trait for the types whose copy is equivalent to copying their object representation.

The values of such types can be split into words, the words transferred separately (e.g. by warp shuffles or volatile loads) and the value assembled again. The trait is true for:

  • all trivially copyable types,
  • static array types (see IsStaticArrayType), e.g. StaticArray and StaticVector, whose elements satisfy this trait, which consist only of their elements and which are trivially destructible. They are not trivially copyable, since they have a user-provided copy constructor, but it only copies the elements.
  • std::array whose elements satisfy this trait.

Other aggregates of such types (e.g. structures with StaticVector data members) are not detected and the trait has to be specialized for them.


The documentation for this struct was generated from the following file:
  • src/TNL/TypeTraits.h