René's URL Explorer Experiment


Title: 常量表达式 - cppreference.com

Generator: MediaWiki 1.43.8

direct link

Domain: zh.cppreference.com

format-detectiontelephone=no

Links:

cppreference.comhttps://zh.cppreference.com/
创建账号https://zh.cppreference.com/index.php?title=Special:%E5%88%9B%E5%BB%BA%E8%B4%A6%E6%88%B7&returnto=cpp%2Flanguage%2Fconstant+expression
登录https://zh.cppreference.com/index.php?title=Special:%E7%94%A8%E6%88%B7%E7%99%BB%E5%BD%95&returnto=cpp%2Flanguage%2Fconstant+expression
页面https://zh.cppreference.com/cpp/language/constant_expression
讨论https://zh.cppreference.com/index.php?title=Talk:cpp/language/constant_expression&action=edit&redlink=1
https://zh.cppreference.com/cpp/language/constant_expression
不转换https://zh.cppreference.com/index.php?title=cpp/language/constant_expression&variant=zh
简体https://zh.cppreference.com/index.php?title=cpp/language/constant_expression&variant=zh-hans
繁體https://zh.cppreference.com/index.php?title=cpp/language/constant_expression&variant=zh-hant
大陆简体https://zh.cppreference.com/index.php?title=cpp/language/constant_expression&variant=zh-cn
香港繁體https://zh.cppreference.com/index.php?title=cpp/language/constant_expression&variant=zh-hk
澳門繁體https://zh.cppreference.com/index.php?title=cpp/language/constant_expression&variant=zh-mo
大马简体https://zh.cppreference.com/index.php?title=cpp/language/constant_expression&variant=zh-my
新加坡简体https://zh.cppreference.com/index.php?title=cpp/language/constant_expression&variant=zh-sg
臺灣正體https://zh.cppreference.com/index.php?title=cpp/language/constant_expression&variant=zh-tw
阅读https://zh.cppreference.com/cpp/language/constant_expression
查看源代码https://zh.cppreference.com/index.php?title=cpp/language/constant_expression&action=edit
查看历史https://zh.cppreference.com/index.php?title=cpp/language/constant_expression&action=history
https://zh.cppreference.com/cpp/language/constant_expression
cpphttps://zh.cppreference.com/cpp
languagehttps://zh.cppreference.com/cpp/language
C++https://zh.cppreference.com/cpp
编译器支持https://zh.cppreference.com/cpp/compiler_support
自立实现与有宿主实现https://zh.cppreference.com/cpp/freestanding
语言https://zh.cppreference.com/cpp/language
标准库https://zh.cppreference.com/cpp/standard_library
标准库标头https://zh.cppreference.com/cpp/header
具名要求https://zh.cppreference.com/cpp/named_req
功能特性测试宏https://zh.cppreference.com/cpp/feature_test
语言支持库https://zh.cppreference.com/cpp/utility#语言支持
概念库https://zh.cppreference.com/cpp/concepts
诊断库https://zh.cppreference.com/cpp/error
内存管理库https://zh.cppreference.com/cpp/memory
元编程库https://zh.cppreference.com/cpp/meta
通用工具库https://zh.cppreference.com/cpp/utility
容器库https://zh.cppreference.com/cpp/container
迭代器库https://zh.cppreference.com/cpp/iterator
范围库https://zh.cppreference.com/cpp/ranges
算法库https://zh.cppreference.com/cpp/algorithm
字符串库https://zh.cppreference.com/cpp/string
文本处理库https://zh.cppreference.com/cpp/text
数值库https://zh.cppreference.com/cpp/numeric
日期和时间库https://zh.cppreference.com/cpp/chrono
输入/输出库https://zh.cppreference.com/cpp/io
文件系统库https://zh.cppreference.com/cpp/filesystem
并发支持库https://zh.cppreference.com/cpp/thread
执行控制库https://zh.cppreference.com/cpp/execution
技术规范https://zh.cppreference.com/cpp/experimental
符号索引https://zh.cppreference.com/cpp/symbol_index
外部库https://zh.cppreference.com/cpp/links/libs
[编辑]https://zh.cppreference.com/index.php?title=Template:cpp/navbar_content&action=edit
C++ 语言https://zh.cppreference.com/cpp/language
预处理器https://zh.cppreference.com/cpp/preprocessor
注释https://zh.cppreference.com/cpp/comment
关键词https://zh.cppreference.com/cpp/keyword
转义序列https://zh.cppreference.com/cpp/language/escape
流程控制https://zh.cppreference.com/cpp/language/statements
ifhttps://zh.cppreference.com/cpp/language/if
switchhttps://zh.cppreference.com/cpp/language/switch
forhttps://zh.cppreference.com/cpp/language/for
范围 forhttps://zh.cppreference.com/cpp/language/range-for
whilehttps://zh.cppreference.com/cpp/language/while
do-whilehttps://zh.cppreference.com/cpp/language/do
continuehttps://zh.cppreference.com/cpp/language/continue
breakhttps://zh.cppreference.com/cpp/language/break
gotohttps://zh.cppreference.com/cpp/language/goto
returnhttps://zh.cppreference.com/cpp/language/return
函数https://zh.cppreference.com/cpp/language/functions
函数声明https://zh.cppreference.com/cpp/language/function
lambda 函数表达式https://zh.cppreference.com/cpp/language/lambda
inline 说明符https://zh.cppreference.com/cpp/language/inline
动态异常说明https://zh.cppreference.com/cpp/language/except_spec
noexcept 说明符https://zh.cppreference.com/cpp/language/noexcept_spec
throw 表达式https://zh.cppreference.com/cpp/language/throw
try 块https://zh.cppreference.com/cpp/language/try
catch 处理块https://zh.cppreference.com/cpp/language/catch
命名空间声明https://zh.cppreference.com/cpp/language/namespace
命名空间别名https://zh.cppreference.com/cpp/language/namespace_alias
基础类型https://zh.cppreference.com/cpp/language/types
枚举类型https://zh.cppreference.com/cpp/language/enum
函数类型https://zh.cppreference.com/cpp/language/function
类/结构体类型https://zh.cppreference.com/cpp/language/class
联合体类型https://zh.cppreference.com/cpp/language/union
const/volatilehttps://zh.cppreference.com/cpp/language/cv
decltypehttps://zh.cppreference.com/cpp/language/decltype
autohttps://zh.cppreference.com/cpp/language/auto
constexprhttps://zh.cppreference.com/cpp/language/constexpr
constevalhttps://zh.cppreference.com/cpp/language/consteval
constinithttps://zh.cppreference.com/cpp/language/constinit
存储期说明符https://zh.cppreference.com/cpp/language/storage_duration
初始化https://zh.cppreference.com/cpp/language/initialization
默认初始化https://zh.cppreference.com/cpp/language/default_initialization
值初始化https://zh.cppreference.com/cpp/language/value_initialization
零初始化https://zh.cppreference.com/cpp/language/zero_initialization
复制初始化https://zh.cppreference.com/cpp/language/copy_initialization
直接初始化https://zh.cppreference.com/cpp/language/direct_initialization
聚合初始化https://zh.cppreference.com/cpp/language/aggregate_initialization
列表初始化https://zh.cppreference.com/cpp/language/list_initialization
常量初始化https://zh.cppreference.com/cpp/language/constant_initialization
引用初始化https://zh.cppreference.com/cpp/language/reference_initialization
表达式https://zh.cppreference.com/cpp/language/expressions
值类别https://zh.cppreference.com/cpp/language/value_category
求值顺序https://zh.cppreference.com/cpp/language/eval_order
运算符https://zh.cppreference.com/cpp/language/operators
运算符优先级https://zh.cppreference.com/cpp/language/operator_precedence
替代表示https://zh.cppreference.com/cpp/language/operator_alternative
字面量https://zh.cppreference.com/cpp/language/expressions#字面量
布尔https://zh.cppreference.com/cpp/language/bool_literal
整数https://zh.cppreference.com/cpp/language/integer_literal
浮点https://zh.cppreference.com/cpp/language/floating_literal
字符https://zh.cppreference.com/cpp/language/character_literal
字符串https://zh.cppreference.com/cpp/language/string_literal
nullptrhttps://zh.cppreference.com/cpp/language/nullptr
用户定义https://zh.cppreference.com/cpp/language/user_literal
属性https://zh.cppreference.com/cpp/language/attributes
typedef 声明https://zh.cppreference.com/cpp/language/typedef
类型别名声明https://zh.cppreference.com/cpp/language/type_alias
隐式转换https://zh.cppreference.com/cpp/language/implicit_conversion
static_casthttps://zh.cppreference.com/cpp/language/static_cast
const_casthttps://zh.cppreference.com/cpp/language/const_cast
显式转换https://zh.cppreference.com/cpp/language/explicit_cast
dynamic_casthttps://zh.cppreference.com/cpp/language/dynamic_cast
reinterpret_casthttps://zh.cppreference.com/cpp/language/reinterpret_cast
new 表达式https://zh.cppreference.com/cpp/language/new
delete 表达式https://zh.cppreference.com/cpp/language/delete
https://zh.cppreference.com/cpp/language/classes
类声明https://zh.cppreference.com/cpp/language/class
构造函数https://zh.cppreference.com/cpp/language/constructor
this 指针https://zh.cppreference.com/cpp/language/this
访问说明符https://zh.cppreference.com/cpp/language/access
friend 说明符https://zh.cppreference.com/cpp/language/friend
虚函数https://zh.cppreference.com/cpp/language/virtual
override 说明符https://zh.cppreference.com/cpp/language/override
final 说明符https://zh.cppreference.com/cpp/language/final
explicithttps://zh.cppreference.com/cpp/language/explicit
statichttps://zh.cppreference.com/cpp/language/static
默认构造函数https://zh.cppreference.com/cpp/language/default_constructor
复制构造函数https://zh.cppreference.com/cpp/language/copy_constructor
移动构造函数https://zh.cppreference.com/cpp/language/move_constructor
复制赋值https://zh.cppreference.com/cpp/language/copy_assignment
移动赋值https://zh.cppreference.com/cpp/language/move_assignment
析构函数https://zh.cppreference.com/cpp/language/destructor
模板https://zh.cppreference.com/cpp/language/templates
类模板https://zh.cppreference.com/cpp/language/class_template
函数模板https://zh.cppreference.com/cpp/language/function_template
模板特化https://zh.cppreference.com/cpp/language/template_specialization
形参包https://zh.cppreference.com/cpp/language/pack
内联汇编https://zh.cppreference.com/cpp/language/asm
C++ 的历史https://zh.cppreference.com/cpp/language/history
[编辑]https://zh.cppreference.com/index.php?title=Template:cpp/language/navbar_content&action=edit
表达式https://zh.cppreference.com/cpp/language/expressions
值类别https://zh.cppreference.com/cpp/language/value_category
求值顺序https://zh.cppreference.com/cpp/language/eval_order
初等表达式https://zh.cppreference.com/cpp/language/expressions#初等表达式
lambda 表达式https://zh.cppreference.com/cpp/language/lambda
requires 表达式https://zh.cppreference.com/cpp/language/requires
包索引表达式https://zh.cppreference.com/cpp/language/pack_indexing#包索引表达式
潜在求值表达式https://zh.cppreference.com/cpp/language/expressions#潜在求值表达式
整数字面量https://zh.cppreference.com/cpp/language/integer_literal
浮点字面量https://zh.cppreference.com/cpp/language/floating_literal
布尔字面量https://zh.cppreference.com/cpp/language/bool_literal
字符字面量https://zh.cppreference.com/cpp/language/character_literal
转义序列https://zh.cppreference.com/cpp/language/escape
字符串字面量https://zh.cppreference.com/cpp/language/string_literal
空指针字面量https://zh.cppreference.com/cpp/language/nullptr
用户定义字面量https://zh.cppreference.com/cpp/language/user_literal
赋值运算符https://zh.cppreference.com/cpp/language/operator_assignment
自增与自减https://zh.cppreference.com/cpp/language/operator_incdec
算术运算符https://zh.cppreference.com/cpp/language/operator_arithmetic
逻辑运算符https://zh.cppreference.com/cpp/language/operator_logical
比较运算符https://zh.cppreference.com/cpp/language/operator_comparison
成员访问运算符https://zh.cppreference.com/cpp/language/operator_member_access
反射运算符https://zh.cppreference.com/cpp/language/operator_reflection
其他运算符https://zh.cppreference.com/cpp/language/operator_other
new 表达式https://zh.cppreference.com/cpp/language/new
delete 表达式https://zh.cppreference.com/cpp/language/delete
throw 表达式https://zh.cppreference.com/cpp/language/throw
alignofhttps://zh.cppreference.com/cpp/language/alignof
sizeofhttps://zh.cppreference.com/cpp/language/sizeof
sizeof...https://zh.cppreference.com/cpp/language/sizeof...
typeidhttps://zh.cppreference.com/cpp/language/typeid
noexcepthttps://zh.cppreference.com/cpp/language/noexcept
折叠表达式https://zh.cppreference.com/cpp/language/fold
运算符的代用表示https://zh.cppreference.com/cpp/language/operator_alternative
优先级和结合性https://zh.cppreference.com/cpp/language/operator_precedence
运算符重载https://zh.cppreference.com/cpp/language/operators
预置比较https://zh.cppreference.com/cpp/language/default_comparisons
隐式转换https://zh.cppreference.com/cpp/language/implicit_conversion
显式转换https://zh.cppreference.com/cpp/language/explicit_cast
一般算术转换https://zh.cppreference.com/cpp/language/usual_arithmetic_conversions
用户定义转换https://zh.cppreference.com/cpp/language/cast_operator
const_casthttps://zh.cppreference.com/cpp/language/const_cast
static_casthttps://zh.cppreference.com/cpp/language/static_cast
dynamic_casthttps://zh.cppreference.com/cpp/language/dynamic_cast
reinterpret_casthttps://zh.cppreference.com/cpp/language/reinterpret_cast
[编辑]https://zh.cppreference.com/index.php?title=Template:cpp/language/expressions/navbar_content&action=edit
表达式https://zh.cppreference.com/cpp/language/expressions
1 定义https://zh.cppreference.com/cpp/language/constant_expression#定义
1.1 整数常量表达式(C++98)https://zh.cppreference.com/cpp/language/constant_expression#整数常量表达式(C++98)
1.2 其他常量表达式类别https://zh.cppreference.com/cpp/language/constant_expression#其他常量表达式类别
2 字面类型https://zh.cppreference.com/cpp/language/constant_expression#字面类型
3 核心常量表达式https://zh.cppreference.com/cpp/language/constant_expression#核心常量表达式
3.1 额外要求https://zh.cppreference.com/cpp/language/constant_expression#额外要求
4 整数常量表达式https://zh.cppreference.com/cpp/language/constant_expression#整数常量表达式
5 经转换的常量表达式https://zh.cppreference.com/cpp/language/constant_expression#经转换的常量表达式
6 成分实体https://zh.cppreference.com/cpp/language/constant_expression#成分实体
7 可 constexpr 表示的实体https://zh.cppreference.com/cpp/language/constant_expression#可_constexpr_表示的实体
8 以常量初始化的实体https://zh.cppreference.com/cpp/language/constant_expression#以常量初始化的实体
9 可用于常量表达式https://zh.cppreference.com/cpp/language/constant_expression#可用于常量表达式
10 明显常量求值的表达式https://zh.cppreference.com/cpp/language/constant_expression#明显常量求值的表达式
11 常量求值所需要的函数与变量https://zh.cppreference.com/cpp/language/constant_expression#常量求值所需要的函数与变量
12 常量子表达式https://zh.cppreference.com/cpp/language/constant_expression#常量子表达式
13 注解https://zh.cppreference.com/cpp/language/constant_expression#注解
14 示例https://zh.cppreference.com/cpp/language/constant_expression#示例
15 缺陷报告https://zh.cppreference.com/cpp/language/constant_expression#缺陷报告
16 参阅https://zh.cppreference.com/cpp/language/constant_expression#参阅
数组边界https://zh.cppreference.com/cpp/language/array
new 表达式https://zh.cppreference.com/cpp/language/new
case 标号https://zh.cppreference.com/cpp/language/statements#标号
位域https://zh.cppreference.com/cpp/language/bit_field
枚举项https://zh.cppreference.com/cpp/language/enum
静态数据成员https://zh.cppreference.com/cpp/language/static
非类型模板实参https://zh.cppreference.com/cpp/language/template_parameters#非类型模板实参
非类型模板形参https://zh.cppreference.com/cpp/language/template_parameters#非类型模板形参
显式转换https://zh.cppreference.com/cpp/language/explicit_cast
常量初始化https://zh.cppreference.com/cpp/language/constant_initialization
空指针值https://zh.cppreference.com/cpp/language/pointer#空指针
静态存储期https://zh.cppreference.com/cpp/language/storage_duration#静态存储期
字符串字面量https://zh.cppreference.com/cpp/language/string_literal
函数https://zh.cppreference.com/cpp/language/function
简旧数据类https://zh.cppreference.com/cpp/language/classes#简旧数据类
子对象https://zh.cppreference.com/cpp/language/object#子对象
dynamic_casthttps://zh.cppreference.com/cpp/language/dynamic_cast
dynamic_casthttps://zh.cppreference.com/cpp/language/dynamic_cast
静态存储期https://zh.cppreference.com/cpp/language/storage_duration#静态存储期
立即https://zh.cppreference.com/cpp/language/consteval
核心常量表达式https://zh.cppreference.com/cpp/language/constant_expression#核心常量表达式
成分引用https://zh.cppreference.com/cpp/language/constant_expression#成分实体
标量类型https://zh.cppreference.com/cpp/named_req/ScalarType
成分值https://zh.cppreference.com/cpp/language/constant_expression#成分实体
不确定值https://zh.cppreference.com/cpp/language/default_initialization#不确定值和错误值
指针类型https://zh.cppreference.com/cpp/language/pointer
成分值https://zh.cppreference.com/cpp/language/constant_expression#成分实体
空指针值https://zh.cppreference.com/cpp/language/pointer#空指针
立即https://zh.cppreference.com/cpp/language/consteval
核心常量表达式https://zh.cppreference.com/cpp/language/constant_expression#核心常量表达式
成分引用https://zh.cppreference.com/cpp/language/constant_expression#成分实体
标量类型https://zh.cppreference.com/cpp/named_req/ScalarType
成分值https://zh.cppreference.com/cpp/language/constant_expression#成分实体
不确定值或错误值https://zh.cppreference.com/cpp/language/default_initialization#不确定值和错误值
无效指针值https://zh.cppreference.com/cpp/language/pointer#无效指针
复制消除https://zh.cppreference.com/cpp/language/copy_elision
标量类型https://zh.cppreference.com/cpp/named_req/ScalarType
引用类型https://zh.cppreference.com/cpp/language/reference
数组https://zh.cppreference.com/cpp/language/array
平凡析构函数https://zh.cppreference.com/cpp/language/destructor#平凡析构函数
constexpr 析构函数https://zh.cppreference.com/cpp/language/constexpr#constexpr_析构函数
闭包类型https://zh.cppreference.com/cpp/language/lambda#闭包类型
聚合https://zh.cppreference.com/cpp/language/aggregate_initialization#定义
变体成员https://zh.cppreference.com/cpp/language/union#联合体式的类
匿名联合体https://zh.cppreference.com/cpp/language/union#匿名联合体
thishttps://zh.cppreference.com/cpp/language/this
constexpr 函数https://zh.cppreference.com/cpp/language/constexpr#constexpr_函数
存储期https://zh.cppreference.com/cpp/language/storage_duration
可用于常量表达式https://zh.cppreference.com/cpp/language/constant_expression#可用于常量表达式
块变量https://zh.cppreference.com/cpp/language/scope#块作用域
constexprhttps://zh.cppreference.com/cpp/language/constexpr
constexpr 函数/构造函数https://zh.cppreference.com/cpp/language/constexpr
未定义行为https://zh.cppreference.com/cpp/language/ub
标准属性https://zh.cppreference.com/cpp/language/attributes#标准属性
lambda 表达式https://zh.cppreference.com/cpp/language/lambda
隐式转换https://zh.cppreference.com/cpp/language/implicit_conversion
可用于常量表达式https://zh.cppreference.com/cpp/language/constant_expression#可用于常量表达式
联合体https://zh.cppreference.com/cpp/language/union
隐式转换https://zh.cppreference.com/cpp/language/implicit_conversion
不确定值https://zh.cppreference.com/cpp/language/default_initialization
void 指针https://zh.cppreference.com/cpp/language/pointer#指向_void_的指针
相似https://zh.cppreference.com/cpp/language/implicit_conversion#相似类型
dynamic_casthttps://zh.cppreference.com/cpp/language/dynamic_cast
reinterpret_casthttps://zh.cppreference.com/cpp/language/reinterpret_cast
typeidhttps://zh.cppreference.com/cpp/language/typeid
new 表达式https://zh.cppreference.com/cpp/language/new
分配函数https://zh.cppreference.com/cpp/memory/new/operator_new
delete 表达式https://zh.cppreference.com/cpp/language/delete
await 表达式https://zh.cppreference.com/cpp/language/coroutines#co_await
yield 表达式https://zh.cppreference.com/cpp/language/coroutines#co_yield
三路比较https://zh.cppreference.com/cpp/language/operator_comparison#三路比较
汇编声明https://zh.cppreference.com/cpp/language/asm
gotohttps://zh.cppreference.com/cpp/language/goto
dynamic_casthttps://zh.cppreference.com/cpp/language/dynamic_cast
typeidhttps://zh.cppreference.com/cpp/language/typeid
new 表达式https://zh.cppreference.com/cpp/language/new
noreturnhttps://zh.cppreference.com/cpp/language/attributes/noreturn
assumehttps://zh.cppreference.com/cpp/language/attributes/assume
运行时未定义行为https://zh.cppreference.com/cpp/language/ub
标准库https://zh.cppreference.com/cpp/standard_library
联合体https://zh.cppreference.com/cpp/language/union
结构化绑定https://zh.cppreference.com/cpp/language/structured_binding
按语境隐式转换https://zh.cppreference.com/cpp/language/implicit_conversion
隐式转换https://zh.cppreference.com/cpp/language/implicit_conversion
用户定义转换https://zh.cppreference.com/cpp/language/cast_operator
左值到右值转换https://zh.cppreference.com/cpp/language/implicit_conversion#左值到右值转换
整数提升https://zh.cppreference.com/cpp/language/implicit_conversion#整数提升
非窄化整数转换https://zh.cppreference.com/cpp/language/implicit_conversion#非窄化整数转换
浮点数提升https://zh.cppreference.com/cpp/language/implicit_conversion#浮点数提升
非窄化浮点数转换https://zh.cppreference.com/cpp/language/implicit_conversion#非窄化浮点数转换
数组到指针转换https://zh.cppreference.com/cpp/language/implicit_conversion#数组到指针转换
函数到指针转换https://zh.cppreference.com/cpp/language/implicit_conversion#函数到指针转换
函数指针转换https://zh.cppreference.com/cpp/language/implicit_conversion#函数指针转换
限定性转换https://zh.cppreference.com/cpp/language/implicit_conversion#限定性转换
空指针转换https://zh.cppreference.com/cpp/language/implicit_conversion#指针转换
空成员指针转换https://zh.cppreference.com/cpp/language/implicit_conversion#成员指针转换
引用绑定https://zh.cppreference.com/cpp/language/reference_initialization
直接绑定https://zh.cppreference.com/cpp/language/reference_initialization#直接绑定
case 标号https://zh.cppreference.com/cpp/language/switch#标号
枚举项初始化式https://zh.cppreference.com/cpp/language/enum
模板实参https://zh.cppreference.com/cpp/language/template_parameters
数组边界https://zh.cppreference.com/cpp/language/array
new 表达式https://zh.cppreference.com/cpp/language/new
参数包索引表达式https://zh.cppreference.com/cpp/language/pack_indexing
参数包索引说明符https://zh.cppreference.com/cpp/language/pack_indexing
按语境转换到 boolhttps://zh.cppreference.com/cpp/language/implicit_conversion#按语境转换
noexcept 说明https://zh.cppreference.com/cpp/language/noexcept_spec
static_assert 声明https://zh.cppreference.com/cpp/language/static_assert
constexpr if 语句https://zh.cppreference.com/cpp/language/if#constexpr_if
条件性 explicit 说明符https://zh.cppreference.com/cpp/language/explicit
不活跃的联合体成员https://zh.cppreference.com/cpp/language/union
子对象https://zh.cppreference.com/cpp/language/object#子对象
可 const 默认构造https://zh.cppreference.com/cpp/language/default_initialization#const_对象的默认初始化
完整表达式https://zh.cppreference.com/cpp/language/expressions#完整表达式
constexpr 构造函数https://zh.cppreference.com/cpp/language/constexpr#constexpr_构造函数
完整表达式https://zh.cppreference.com/cpp/language/expressions#完整表达式
契约断言https://zh.cppreference.com/cpp/language/contracts
可 const 默认构造https://zh.cppreference.com/cpp/language/default_initialization#const_对象的默认初始化
constexpr 变量https://zh.cppreference.com/cpp/language/constexpr#constexpr_变量
翻译单元局部https://zh.cppreference.com/cpp/language/tu_local
可 constexpr 表示https://zh.cppreference.com/cpp/language/constant_expression#可_constexpr_表示的实体
模板形参对象https://zh.cppreference.com/cpp/language/template_parameters#模板形参对象
字符串字面量https://zh.cppreference.com/cpp/language/string_literal
数组边界https://zh.cppreference.com/cpp/language/array
new 表达式https://zh.cppreference.com/cpp/language/new
位域https://zh.cppreference.com/cpp/language/bit_field
枚举项https://zh.cppreference.com/cpp/language/enum
对齐https://zh.cppreference.com/cpp/language/alignas
case 标号https://zh.cppreference.com/cpp/language/switch#标号
模板实参https://zh.cppreference.com/cpp/language/template_parameters
noexcept 说明https://zh.cppreference.com/cpp/language/noexcept_spec
static_assert 声明https://zh.cppreference.com/cpp/language/static_assert
constexpr 变量https://zh.cppreference.com/cpp/language/constexpr
constexpr if 语句https://zh.cppreference.com/cpp/language/if#constexpr_if
条件性 explicit 说明符https://zh.cppreference.com/cpp/language/explicit
立即调用https://zh.cppreference.com/cpp/language/consteval
概念https://zh.cppreference.com/cpp/language/constraints#概念
嵌套要求https://zh.cppreference.com/cpp/language/constraints#嵌套要求
requires 子句https://zh.cppreference.com/cpp/language/constraints#requires_子句
常量初始化器https://zh.cppreference.com/cpp/language/constant_initialization
if constevalhttps://zh.cppreference.com/cpp/language/if#consteval_if
花括号包围的初始化器列表https://zh.cppreference.com/cpp/language/initialization
窄化https://zh.cppreference.com/cpp/language/list_initialization#窄化转换
模板化实体https://zh.cppreference.com/cpp/language/templates#模板化实体
值待决https://zh.cppreference.com/cpp/language/dependent_name#值待决表达式
不求值操作数https://zh.cppreference.com/cpp/language/expressions#不求值表达式
指名https://zh.cppreference.com/cpp/language/definition#指名函数
标识表达式https://zh.cppreference.com/cpp/language/expressions#初等表达式
函数模板https://zh.cppreference.com/cpp/language/function_template
变量模板https://zh.cppreference.com/cpp/language/variable_template
子表达式https://zh.cppreference.com/cpp/language/expressions#完整表达式
核心常量表达式https://zh.cppreference.com/cpp/language/constant_expression#核心常量表达式
throw 表达式https://zh.cppreference.com/cpp/language/throw
yield 表达式https://zh.cppreference.com/cpp/language/coroutines
赋值表达式https://zh.cppreference.com/cpp/language/operator_assignment
逗号表达式https://zh.cppreference.com/cpp/language/operator_other#内建的逗号运算符
__cpp_constexpr_in_decltypehttps://zh.cppreference.com/cpp/feature_test#cpp_constexpr_in_decltype
201711Lhttps://zh.cppreference.com/cpp/compiler_support/20#cpp_constexpr_in_decltype_201711L
被常量求值所需要https://zh.cppreference.com/cpp/language/constant_expression#常量求值所需要的函数与变量
__cpp_constexpr_dynamic_allochttps://zh.cppreference.com/cpp/feature_test#cpp_constexpr_dynamic_alloc
201907Lhttps://zh.cppreference.com/cpp/compiler_support/20#cpp_constexpr_dynamic_alloc_201907L
__cpp_constexprhttps://zh.cppreference.com/cpp/feature_test#cpp_constexpr
202306Lhttps://zh.cppreference.com/cpp/compiler_support/26#cpp_constexpr_202306L
202406Lhttps://zh.cppreference.com/cpp/compiler_support/26#cpp_constexpr_202406L
__cpp_constexpr_exceptionshttps://zh.cppreference.com/cpp/feature_test#cpp_constexpr_exceptions
202411Lhttps://zh.cppreference.com/cpp/compiler_support/26#cpp_constexpr_exceptions_202411L
CWG 94https://cplusplus.github.io/CWG/issues/94.html
CWG 366https://cplusplus.github.io/CWG/issues/366.html
CWG 457https://cplusplus.github.io/CWG/issues/457.html
CWG 1293https://cplusplus.github.io/CWG/issues/1293.html
CWG 1311https://cplusplus.github.io/CWG/issues/1311.html
CWG 1312https://cplusplus.github.io/CWG/issues/1312.html
CWG 1313https://cplusplus.github.io/CWG/issues/1313.html
CWG 1405https://cplusplus.github.io/CWG/issues/1405.html
CWG 1454https://cplusplus.github.io/CWG/issues/1454.html
CWG 1455https://cplusplus.github.io/CWG/issues/1455.html
CWG 1456https://cplusplus.github.io/CWG/issues/1456.html
CWG 1535https://cplusplus.github.io/CWG/issues/1535.html
CWG 1581https://cplusplus.github.io/CWG/issues/1581.html
CWG 1613https://cplusplus.github.io/CWG/issues/1613.html
CWG 1694https://cplusplus.github.io/CWG/issues/1694.html
CWG 1872https://cplusplus.github.io/CWG/issues/1872.html
CWG 1952https://cplusplus.github.io/CWG/issues/1952.html
CWG 2022https://cplusplus.github.io/CWG/issues/2022.html
CWG 2126https://cplusplus.github.io/CWG/issues/2126.html
CWG 2129https://cplusplus.github.io/CWG/issues/2129.html
CWG 2167https://cplusplus.github.io/CWG/issues/2167.html
CWG 2278https://cplusplus.github.io/CWG/issues/2278.html
CWG 问题 2022https://cplusplus.github.io/CWG/issues/2022.html
CWG 2299https://cplusplus.github.io/CWG/issues/2299.html
https://zh.cppreference.com/cpp/header/cstdarg
CWG 2400https://cplusplus.github.io/CWG/issues/2400.html
CWG 2490https://cplusplus.github.io/CWG/issues/2490.html
CWG 2552https://cplusplus.github.io/CWG/issues/2552.html
CWG 2558https://cplusplus.github.io/CWG/issues/2558.html
CWG 2647https://cplusplus.github.io/CWG/issues/2647.html
CWG 2763https://cplusplus.github.io/CWG/issues/2763.html
noreturnhttps://zh.cppreference.com/cpp/language/attributes/noreturn
CWG 2851https://cplusplus.github.io/CWG/issues/2851.html
CWG 2907https://cplusplus.github.io/CWG/issues/2907.html
CWG 2909https://cplusplus.github.io/CWG/issues/2909.html
CWG 2924https://cplusplus.github.io/CWG/issues/2924.html
noreturnhttps://zh.cppreference.com/cpp/language/attributes/noreturn
assumehttps://zh.cppreference.com/cpp/language/attributes/assume
P2280R4https://wg21.link/P2280R4
constexpr 说明符https://zh.cppreference.com/cpp/language/constexpr
[编辑]https://zh.cppreference.com/index.php?title=Template:cpp/language/dsc_constexpr&action=edit
is_literal_typehttps://zh.cppreference.com/cpp/types/is_literal_type
[编辑]https://zh.cppreference.com/index.php?title=Template:cpp/types/dsc_is_literal_type&action=edit
C 文档https://zh.cppreference.com/c/language/constant_expression
分类https://zh.cppreference.com/Special:%E9%A1%B5%E9%9D%A2%E5%88%86%E7%B1%BB
使用已弃用source标签的页面https://zh.cppreference.com/index.php?title=Category:%E4%BD%BF%E7%94%A8%E5%B7%B2%E5%BC%83%E7%94%A8source%E6%A0%87%E7%AD%BE%E7%9A%84%E9%A1%B5%E9%9D%A2&action=edit&redlink=1
无示例的 todohttps://zh.cppreference.com/index.php?title=Category:%E6%97%A0%E7%A4%BA%E4%BE%8B%E7%9A%84_todo&action=edit&redlink=1
首页https://zh.cppreference.com/%E9%A6%96%E9%A1%B5
最近更改https://zh.cppreference.com/Special:%E6%9C%80%E8%BF%91%E6%9B%B4%E6%94%B9
随机页面https://zh.cppreference.com/Special:%E9%9A%8F%E6%9C%BA%E9%A1%B5%E9%9D%A2
MediaWiki帮助https://www.mediawiki.org/wiki/Special:MyLanguage/Help:Contents
https://zh.cppreference.com/cpp/language/constant_expression
链入页面https://zh.cppreference.com/Special:%E9%93%BE%E5%85%A5%E9%A1%B5%E9%9D%A2/cpp/language/constant_expression
相关更改https://zh.cppreference.com/Special:%E9%93%BE%E5%87%BA%E6%9B%B4%E6%94%B9/cpp/language/constant_expression
上传文件http://upload.cppreference.com/w/Special:Upload
特殊页面https://zh.cppreference.com/Special:%E7%89%B9%E6%AE%8A%E9%A1%B5%E9%9D%A2
可打印版javascript:print();
固定链接https://zh.cppreference.com/index.php?title=cpp/language/constant_expression&oldid=101322
页面信息https://zh.cppreference.com/index.php?title=cpp/language/constant_expression&action=info
Englishhttp://en.cppreference.com/cpp/language/constant_expression
Españolhttp://es.cppreference.com/cpp/language/constant_expression
日本語http://ja.cppreference.com/cpp/language/constant_expression
Русскийhttp://ru.cppreference.com/cpp/language/constant_expression

Viewport: width=1120

Robots: max-image-preview:standard


URLs of crawlers that visited me.