How can std::aligned_storage expose correctly aligned storage for any object?

前端 未结 1 723
醉梦人生
醉梦人生 2021-01-25 04:42

The std::aligned_storage structure provides a type typedef that at least according to cppreference:

Provides the member typedef

相关标签:
1条回答
  • 2021-01-25 05:28

    Per [meta.trans.other]/2,

    It is implementation-defined whether any extended alignment is supported.

    It's pretty annoying when they specify stuff like this after the big table without a pointer. I've just added the sentence to cppreference.

    0 讨论(0)
提交回复
热议问题