From cppreference.com
Defined in header
enumclassalign_val_t:std::size_t{};(since C++17)Both
and
, when used with objects whose alignment requirement is greater than __STDCPP_DEFAULT_NEW_ALIGNMENT__, pass that alignment requirement as an argument of type std::align_val_t to the selected allocation/deallocation function.
Notes
Alignment (as obtained by alignof) has the type
, but placement forms of allocation and deallocation functions that take
as an additional parameter are already in use, so this type is used instead.
Feature-test macroValueStdFeature
(C++17)Dynamic memory allocation for over-aligned data See also