Skip to content

ludus::foundation::IsTriviallyRelocatableTrait

Ludus Wiki · API overview · Browse API

Struct

Primary template: a type is trivially relocatable if it is trivially copyable.
Specialize (via LUDUS_TRIVIALLY_RELOCATABLE) to opt a non-trivially-copyable but bitwise-relocatable type into the memcpy growth path.

Declared in modules/foundation/containers/include/ludus/foundation/containers/relocation.hpp

#include <ludus/foundation/containers/relocation.hpp>
template <typename ElementType>
struct ludus::foundation::IsTriviallyRelocatableTrait : public std::bool_constant< std::is_trivially_copyable_v< ElementType > >