8class move_only_function
14 using base::operator();
15 move_only_function(move_only_function&&)
noexcept =
default;
16 move_only_function& operator=(move_only_function&&)
noexcept =
default;
17 move_only_function(move_only_function
const&) =
delete;
18 move_only_function& operator=(move_only_function
const&) =
delete;
20 requires std::is_constructible_v<move_only_function, F>
21 move_only_function& operator=(F&& f) {
22 *
this = move_only_function{std::forward<F>(f)};
25 friend void swap(move_only_function& f1, move_only_function& f2)
noexcept { f1.swap(f2); }