Skip to content

num::make_aligned_for_overwrite

Defined in header <container/util/aligned_storage.hpp>

template <class T>
aligned_array<T> make_aligned_for_overwrite(idx count);

Allocate count default-initialized elements on an aligned boundary; overwrite before reading.

Exceptions

  • std::bad_alloc: On overflow or allocation failure.