integral_promotion.qbk
来自「Boost provides free peer-reviewed portab」· QBK 代码 · 共 38 行
QBK
38 行
[/ 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:integral_promotion integral_promotion] template <class T> struct integral_promotion { typedef __below type; }; __type If integral promotion can be applied to an rvalue of type `T`, thenapplies integral promotion to `T` and keeps cv-qualifiers of `T`,otherwise leaves `T` unchanged.__std_ref 4.5 except 4.5/3 (integral bit-field).__header ` #include <boost/type_traits/integral_promotion.hpp>` or ` #include <boost/type_traits.hpp>`[table Examples[ [Expression] [Result Type]][[`integral_promotion<short const>::type`][`int const`]][[`integral_promotion<short&>::type`][`short&`]][[`integral_promotion<enum std::float_round_style>::type`][`int`]]][endsect]
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?