cppreference.com
アカウント作成
ログイン
名前空間
ページ
ノート
変種
表示
表示
編集
履歴
操作
std::move_only_function::
swap
From cppreference.com
<
cpp
|
utility
|
functional
|
move only function
C++
コンパイラサポート
フリースタンディングとホスト
言語
標準ライブラリ
標準ライブラリヘッダー
名前付き要件
機能テストマクロ
(C++20)
言語サポートライブラリ
コンセプトライブラリ
(C++20)
診断ライブラリ
メモリ管理ライブラリ
メタプログラミングライブラリ
(C++11)
汎用ユーティリティライブラリ
コンテナライブラリ
イテレータライブラリ
Rangesライブラリ
(C++20)
アルゴリズムライブラリ
文字列ライブラリ
テキスト処理ライブラリ
数値ライブラリ
日付と時刻ライブラリ
入出力ライブラリ
ファイルシステムライブラリ
(C++17)
並行サポートライブラリ
(C++11)
実行制御ライブラリ
(C++26)
Technical specifications (技術仕様)
シンボルインデックス
外部ライブラリ
[編集]
ユーティリティライブラリ
言語サポート
型のサポート
(基本型、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)
汎用ユーティリティ
関数オブジェクト
ビット操作
(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)
[編集]
関数オブジェクト
関数ラッパー
関数
(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)
否定子 (Negators)
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::move_only_function
メンバ関数
move_only_function::move_only_function
move_only_function::~move_only_function
move_only_function::operator=
move_only_function::swap
move_only_function::operator bool
move_only_function::operator()
非メンバ関数
operator==
swap
(std::move_only_function)
[編集]
void
swap
(
move_only_function
&
other
)
noexcept
;
(C++23から)
*
this
と
other
の格納されている呼び出し可能オブジェクトを交換します。
[
編集
]
パラメータ
その他
-
格納されている呼び出し可能オブジェクトを交換する関数ラッパー
[
編集
]
戻り値
(なし)
[
編集
]
関連項目
swap
内容を交換する
(
std::function<R(Args...)>
の public メンバ関数)
[編集]
English
日本語
中文(简体)
中文(繁體)