]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/type_traits/doc/integral_promotion.qbk
bump version to 12.2.2-pve1
[ceph.git] / ceph / src / boost / libs / type_traits / doc / integral_promotion.qbk
1 [/
2 Copyright 2007 John Maddock.
3 Distributed under the Boost Software License, Version 1.0.
4 (See accompanying file LICENSE_1_0.txt or copy at
5 http://www.boost.org/LICENSE_1_0.txt).
6 ]
7
8 [section:integral_promotion integral_promotion]
9
10 template <class T>
11 struct integral_promotion
12 {
13 typedef __below type;
14 };
15
16 __type If integral promotion can be applied to an rvalue of type `T`, then
17 applies integral promotion to `T` and keeps cv-qualifiers of `T`,
18 otherwise leaves `T` unchanged.
19
20 __std_ref 4.5 except 4.5/3 (integral bit-field).
21
22 __header ` #include <boost/type_traits/integral_promotion.hpp>` or ` #include <boost/type_traits.hpp>`
23
24 [table Examples
25
26 [ [Expression] [Result Type]]
27
28 [[`integral_promotion<short const>::type`][`int const`]]
29
30 [[`integral_promotion<short&>::type`][`short&`]]
31
32 [[`integral_promotion<enum std::float_round_style>::type`][`int`]]
33
34 ]
35
36 [endsect]
37