cppreference.com
アカウント作成
ログイン
名前空間
ページ
議論
変種
表示
閲覧
編集
履歴
操作
std::function<R(Args...)>::
swap
提供: cppreference.com
<
cpp
|
utility
|
functional
|
function
C++
言語
標準ライブラリヘッダ
フリースタンディング処理系とホスト処理系
名前付き要件
言語サポートライブラリ
コンセプトライブラリ
(C++20)
診断ライブラリ
ユーティリティライブラリ
文字列ライブラリ
コンテナライブラリ
イテレータライブラリ
範囲ライブラリ
(C++20)
アルゴリズムライブラリ
数値演算ライブラリ
ローカライゼーションライブラリ
入出力ライブラリ
ファイルシステムライブラリ
(C++17)
正規表現ライブラリ
(C++11)
アトミック操作ライブラリ
(C++11)
スレッドサポートライブラリ
(C++11)
技術仕様書
[edit]
ユーティリティライブラリ
言語サポート
型サポート
(基本型、RTTI、型特性)
ライブラリの機能テストマクロ
(C++20)
動的メモリ管理
プログラムユーティリティ
エラー処理
コルーチンサポート
(C++20)
可変長引数関数
launder
(C++17)
initializer_list
(C++11)
source_location
(C++20)
三方比較
(C++20)
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_neq
is_lt
is_lteq
is_gt
is_gteq
(C++20)
(C++20)
(C++20)
(C++20)
(C++20)
(C++20)
汎用ユーティリティ
日付と時間
関数オブジェクト
書式化ライブラリ
(C++20)
bitset
hash
(C++11)
integer_sequence
(C++14)
関係演算子
(C++20で非推奨)
rel_ops::operator!=
rel_ops::operator>
rel_ops::operator<=
rel_ops::operator>=
整数比較関数
cmp_equal
cmp_not_equal
cmp_less
cmp_greater
cmp_less_than
cmp_greater_than
(C++20)
(C++20)
(C++20)
(C++20)
(C++20)
(C++20)
in_range
(C++20)
スワップと型操作
swap
ranges::swap
(C++20)
exchange
(C++14)
declval
(C++11)
forward
(C++11)
move
(C++11)
move_if_noexcept
(C++11)
as_const
(C++17)
一般的な語彙の型
pair
tuple
(C++11)
apply
(C++17)
make_from_tuple
(C++17)
optional
(C++17)
any
(C++17)
variant
(C++17)
初等文字列変換
to_chars
(C++17)
from_chars
(C++17)
chars_format
(C++17)
[edit]
関数オブジェクト
関数ラッパー
function
(C++11)
mem_fn
(C++11)
bad_function_call
(C++11)
関数の部分適用
bind_front
(C++20)
bind
(C++11)
is_bind_expression
(C++11)
is_placeholder
(C++11)
_1, _2, _3, ...
(C++11)
関数呼び出し
invoke
(C++17)
恒等関数オブジェクト
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
logical_and
logical_or
logical_not
equal_to
not_equal_to
greater
less
greater_equal
less_equal
bit_and
bit_or
bit_xor
bit_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)
古いバインダとアダプタ
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未満)
[edit]
std::function
メンバ関数
function::function
function::~function
function::operator=
function::swap
function::assign
(C++17未満)
function::operator bool
function::operator()
function::target_type
function::target
非メンバ関数
operator==
operator!=
(C++20未満)
std::swap(std::function)
ヘルパークラス
std::uses_allocator<std::function>
(C++17未満)
推定ガイド
(C++17)
[edit]
void
swap
(
function
&
other
)
noexcept
;
(C++11以上)
*
this
と
other
の格納されている callable なオブジェクトを交換します。
[
編集
]
引数
other
-
格納されている callable なオブジェクトを交換する関数ラッパー
[
編集
]
戻り値
(なし)