std::copyable_function::
swap
来自cppreference.com
<
cpp
|
utility
|
functional
|
copyable function
C++
编译器支持
自立实现与有宿主实现
语言
标准库
标准库标头
具名要求
功能特性测试宏
(C++20)
语言支持库
概念库
(C++20)
元编程库
(C++11)
诊断库
通用工具库
字符串库
容器库
迭代器库
范围库
(C++20)
算法库
数值库
本地化库
输入/输出库
文件系统库
(C++17)
正则表达式库
(C++11)
并发支持库
(C++11)
技术规范
符号索引
外部库
工具库
语言支持
类型支持
(基本类型、RTTI)
库功能特性测试宏
(C++20)
动态内存管理
程序工具
协程支持
(C++20)
变参数函数
is_constant_evaluated
(C++20)
is_within_lifetime
(C++26)
initializer_list
(C++11)
source_location
(C++20)
调试支持
is_debugger_present
(C++26)
breakpoint_if_debugging
(C++26)
breakpoint
(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)
通用工具
日期和时间
函数对象
格式化库
(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)
初等字符串转换
to_chars
(C++17)
from_chars
(C++17)
chars_format
(C++17)
to_chars_result
(C++17)
from_chars_result
(C++17)
函数对象
函数包装器
function
(C++11)
move_only_function
(C++23)
copyable_function
(C++26)
function_ref
(C++26)
mem_fn
(C++11)
bad_function_call
(C++11)
部分函数应用
bind_front
bind_back
(C++20)
(C++23)
bind
(C++11)
is_bind_expression
(C++11)
is_placeholder
(C++11)
_1, _2, _3, ...
(C++11)
函数调用
invoke
invoke_r
(C++17)
(C++23)
恒等函数对象
identity
(C++20)
引用包装器
reference_wrapper
(C++11)
ref
cref
(C++11)
(C++11)
unwrap_reference
unwrap_ref_decay
(C++20)
(C++20)
运算符包装器
plus
minus
negate
multiplies
divides
modulus
bit_and
bit_or
bit_not
(C++14)
bit_xor
equal_to
not_equal_to
greater
less
greater_equal
less_equal
logical_and
logical_or
logical_not
通透运算符包装器
plus
<>
(C++14)
minus
<>
(C++14)
negate
<>
(C++14)
multiplies
<>
(C++14)
divides
<>
(C++14)
modulus
<>
(C++14)
bit_and
<>
(C++14)
bit_or
<>
(C++14)
bit_not
<>
(C++14)
bit_xor
<>
(C++14)
equal_to
<>
(C++14)
not_equal_to
<>
(C++14)
greater
<>
(C++14)
less
<>
(C++14)
greater_equal
<>
(C++14)
less_equal
<>
(C++14)
logical_and
<>
(C++14)
logical_or
<>
(C++14)
logical_not
<>
(C++14)
取反器
not_fn
(C++17)
搜索器
default_searcher
(C++17)
boyer_moore_searcher
(C++17)
boyer_moore_horspool_searcher
(C++17)
受约束的比较器
ranges::equal_to
(C++20)
ranges::not_equal_to
(C++20)
ranges::greater
(C++20)
ranges::less
(C++20)
ranges::greater_equal
(C++20)
ranges::less_equal
(C++20)
compare_three_way
(C++20)
旧式绑定器与适配器
unary_function
(
C++17 前*
)
binary_function
(
C++17 前*
)
ptr_fun
(
C++17 前*
)
pointer_to_unary_function
(
C++17 前*
)
pointer_to_binary_function
(
C++17 前*
)
mem_fun
(
C++17 前*
)
mem_fun_t
mem_fun1_t
const_mem_fun_t
const_mem_fun1_t
(
C++17 前*
)
(
C++17 前*
)
(
C++17 前*
)
(
C++17 前*
)
not1
(
C++20 前*
)
not2
(
C++20 前*
)
binder1st
binder2nd
(
C++17 前*
)
(
C++17 前*
)
bind1st
bind2nd
(
C++17 前*
)
(
C++17 前*
)
mem_fun_ref
(
C++17 前*
)
mem_fun_ref_t
mem_fun1_ref_t
const_mem_fun_ref_t
const_mem_fun1_ref_t
(
C++17 前*
)
(
C++17 前*
)
(
C++17 前*
)
(
C++17 前*
)
unary_negate
(
C++20 前*
)
binary_negate
(
C++20 前*
)
std::copyable_function
成员函数
copyable_function::copyable_function
copyable_function::~copyable_function
copyable_function::operator=
copyable_function::swap
copyable_function::operator bool
copyable_function::operator()
非成员函数
operator==
swap
(std::copyable_function)
void
swap
(
copyable_function
&
other
)
noexcept
;
(C++26 起)
互换
*
this
和
other
中存储的可调用对象。
参数
other
-
要与之互换存储的可调用对象的函数包装器
返回值
(无)
参阅
swap
交换内容
(
std::function<R(Args...)>
的公开成员函数)
swap
交换两个
std::move_only_function
对象的目标
(
std::move_only_function
的公开成员函数)