cppreference.cn
创建账户
登录
命名空间
页面
讨论
变体
视图
查看
编辑
历史
操作
SIG_DFL, SIG_IGN
来自 cppreference.cn
<
cpp
|
utility
|
program
C++
编译器支持
独立和宿主式
语言
标准库
标准库头文件
具名要求
特性测试宏
(C++20)
语言支持库
概念库
(C++20)
诊断库
内存管理库
元编程库
(C++11)
通用工具库
容器库
迭代器库
范围库
(C++20)
算法库
字符串库
文本处理库
数值库
日期和时间库
输入/输出库
文件系统库
(C++17)
并发支持库
(C++11)
执行控制库
(C++26)
技术规范
符号索引
外部库
[编辑]
实用工具库
语言支持
类型支持
(基本类型, RTTI)
库特性测试宏
(C++20)
程序实用工具
可变参数函数
initializer_list
(C++11)
is_constant_evaluated
(C++20)
is_within_lifetime
(C++26)
source_location
(C++20)
协程支持
(C++20)
契约支持
(C++26)
三路比较
three_way_comparable
three_way_comparable_with
(C++20)
(C++20)
strong_ordering
(C++20)
weak_ordering
(C++20)
partial_ordering
(C++20)
common_comparison_category
(C++20)
compare_three_way_result
(C++20)
compare_three_way
(C++20)
strong_order
(C++20)
weak_order
(C++20)
partial_order
(C++20)
compare_strong_order_fallback
(C++20)
compare_weak_order_fallback
(C++20)
compare_partial_order_fallback
(C++20)
is_eq
is_lt
is_lteq
(C++20)
(C++20)
(C++20)
is_neq
is_gt
is_gteq
(C++20)
(C++20)
(C++20)
通用实用工具
函数对象
位 manipulation
(C++20)
bitset
hash
(C++11)
关系运算符
(在 C++20 中弃用)
rel_ops::operator!=
rel_ops::operator>
rel_ops::operator<=
rel_ops::operator>=
整数比较函数
cmp_equal
cmp_less
cmp_less_than
(C++20)
(C++20)
(C++20)
cmp_not_equal
cmp_greater
cmp_greater_than
(C++20)
(C++20)
(C++20)
in_range
(C++20)
交换
和
类型操作
swap
ranges::swap
(C++20)
exchange
(C++14)
declval
(C++11)
to_underlying
(C++23)
forward
(C++11)
forward_like
(C++23)
move
(C++11)
move_if_noexcept
(C++11)
as_const
(C++17)
常用词汇类型
pair
tuple
(C++11)
optional
(C++17)
any
(C++17)
variant
(C++17)
tuple_size
(C++11)
tuple_element
(C++11)
apply
(C++17)
make_from_tuple
(C++17)
expected
(C++23)
[编辑]
程序支持实用工具
程序终止
abort
exit
quick_exit
(C++11)
_Exit
(C++11)
atexit
at_quick_exit
(C++11)
EXIT_SUCCESS
EXIT_FAILURE
不可达到的控制流
unreachable
(C++23)
与环境通信
system
getenv
信号
signal
raise
sig_atomic_t
SIG_DFL
SIG_IGN
SIG_ERR
信号类型
SIGABRT
SIGFPE
SIGILL
SIGINT
SIGSEGV
SIGTERM
非局部跳转
setjmp
longjmp
类型
jmp_buf
[编辑]
定义于头文件
<csignal>
#define SIG_DFL /*实现定义*/
#define SIG_IGN /*实现定义*/
宏
SIG_DFL
和
SIG_IGN
扩展为不等于任何函数地址的整型表达式。这些宏为
std::
signal
(
)
函数定义了信号处理策略。
常量
解释
SIG_DFL
默认信号处理
SIG_IGN
信号被忽略
[
编辑
]
参见
C 文档
关于
SIG_DFL
,
SIG_IGN