Galois
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
galois::CopyableArray< T, N > Class Template Reference

A subclass of std::array that is marked trivially copyable if the type is also memory copyable. More...

#include <ArrayWrapper.h>

Inheritance diagram for galois::CopyableArray< T, N >:

Public Types

using tt_is_copyable = typename std::enable_if< galois::runtime::is_memory_copyable< T >::value, int >::type
 Only typedef tt_is_copyable if T is trivially copyable. More...
 

Additional Inherited Members

- Public Attributes inherited from std::array< T >
elements
 STL member. More...
 

Detailed Description

template<class T, size_t N>
class galois::CopyableArray< T, N >

A subclass of std::array that is marked trivially copyable if the type is also memory copyable.

Useful when you need a trivially copyable type for serialization.

Template Parameters
Ttype of the items to be stored in the array
Ntotal number of items in the array

Member Typedef Documentation

template<class T , size_t N>
using galois::CopyableArray< T, N >::tt_is_copyable = typename std::enable_if<galois::runtime::is_memory_copyable<T>::value, int>::type

Only typedef tt_is_copyable if T is trivially copyable.

Allows the use of memcopy in serialize/deserialize.


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