Movatterモバイル変換


[0]ホーム

URL:


cppreference.com
Namespaces
Variants
    Actions

      Standard library header <cstdalign> (C++11)(until C++20), <stdalign.h> (C++11)

      From cppreference.com
      <cpp‎ |header
       
       
      Standard library headers
       

      This header was originally in the C standard library as<stdalign.h>.

      C compatibility header.alignas andalignof arekeywords in C++, but they were not keywords in C until C23.

      Macros

      __alignas_is_defined
      (C++11)(deprecated)
      C compatibility macro constant, expands to integer literal1
      (macro constant)[edit]
      __alignof_is_defined
      (C++11)(deprecated)
      C compatibility macro constant, expands to integer literal1
      (macro constant)[edit]

      [edit]Notes

      <cstdalign> is deprecated in C++17 and removed in C++20. Corresponding<stdalign.h> is still available in C++20.

      [edit]Defect reports

      The following behavior-changing defect reports were applied retroactively to previously published C++ standards.

      DRApplied toBehavior as publishedCorrect behavior
      LWG 3827C++11C programs no longer need the compatibility
      macro__alignas_is_defined since C23
      deprecated this
      macro in C++
      Retrieved from "https://en.cppreference.com/mwiki/index.php?title=cpp/header/cstdalign&oldid=173710"

      [8]ページ先頭

      ©2009-2025 Movatter.jp