std::ceil2
来自cppreference.com
| 定义于头文件 <bit>
|
||
| template< class T > constexpr T ceil2(T x) noexcept; |
(C++20 起) | |
不小于 x 的最小的二的整数次幂。若值不能以 T 表示,则结果未指定。
此重载仅若 T 为无符号整数类型(即 unsigned char 、 unsigned short 、 unsigned int 、 unsigned long 、 unsigned long long 或扩展无符号整数类型)才参与重载决议。
[编辑] 返回值
不小于 x 的最小的二的整数次幂,或若结果不能以 T 表示则为未指定值。
[编辑] 示例
| 本节未完成 原因:暂无示例 |

