alignment_traits.qbk

来自「Boost provides free peer-reviewed portab」· QBK 代码 · 共 25 行

QBK
25
字号
[/   Copyright 2007 John Maddock.  Distributed under the Boost Software License, Version 1.0.  (See accompanying file LICENSE_1_0.txt or copy at  http://www.boost.org/LICENSE_1_0.txt).][section:alignment Synthesizing Types with Specific Alignments]Some low level memory management routines need to synthesize a POD type withspecific alignment properties.  The template `__type_with_alignment` finds the smallesttype with a specified alignment, while template `__aligned_storage` creates a type with a specific size and alignment.[*Synopsis]   template <std::size_t Align>   struct __type_with_alignment;      template <std::size_t Size, std::size_t Align>   struct __aligned_storage;[endsect]

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?