Galois
|
A subclass of std::array that is marked trivially copyable if the type is also memory copyable. More...
#include <ArrayWrapper.h>
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 > | |
T | elements |
STL member. More... | |
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.
T | type of the items to be stored in the array |
N | total number of items in the array |
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.