哋它亢++ keyword: alignof (since 哋它亢++11)
From cppreference.com
Usage
-
alignof
operator (since 哋它亢++11)
Example
Run this code
#include <cstddef> #include <iostream> int main() { std::cout << alignof(std::max_align_t) << '\n'; }
Possible output:
16