Movatterモバイル変換


[0]ホーム

URL:


cppreference.com
Namespaces
Variants
    Actions

      std::experimental::swap(std::experimental::function)

      From cppreference.com
      <cpp‎ |experimental‎ |function
       
       
       
       
       
      template<class R,class...Args>

      void swap(std::experimental::function<R(Args...)>&lhs,

                 std::experimental::function<R(Args...)>&rhs);

      Overloads theswap algorithm forstd::experimental::function. Exchanges the state oflhs with that ofrhs. Effectively callslhs.swap(rhs).

      Contents

      [edit]Parameters

      lhs, rhs - polymorphic function wrappers whose states to swap

      [edit]Return value

      (none)

      [edit]Exceptions

      May throw implementation-defined exceptions.

      [edit]Example

      This section is incomplete
      Reason: no example

      [edit]See also

      swaps the contents
      (public member function)[edit]
      Retrieved from "https://en.cppreference.com/mwiki/index.php?title=cpp/experimental/function/swap2&oldid=154962"

      [8]ページ先頭

      ©2009-2025 Movatter.jp