94template <
typename T,
typename custom =
void>
97 static_assert(std::is_trivial<T>::value && std::is_standard_layout<T>::value,
98 "hila::global<> expects only pod-type elements (plain old data): default "
99 "constructor, copy and delete");
105 void copy_to_device()
const {}
109 const T &operator()()
const {
114 template <typename S, std::enable_if_t<hila::is_assignable<T &, S>::value,
int> = 0>
115 void operator=(
const S &rhs) {
116 assert(hila::is_initialized &&
"Assign to global possible only after hila::initialize()");
Global variable class within hila namespace.
Implement hila::swap for gauge fields.