Movatterモバイル変換


[0]ホーム

URL:


cppreference.com
Namespaces
Variants
    Actions

      std::experimental::function<R(Args...)>::swap

      From cppreference.com
      <cpp‎ |experimental‎ |function
       
       
       
       
       
      void swap( function& other);
      (library fundamentals TS)

      Exchanges the stored callable objects of*this andother.

      The allocators of*this andother are not exchanged.

      The behavior is undefined if*this->get_memory_resource()!=*other.get_memory_resource().

      (library fundamentals TS)
      (until library fundamentals TS v3)

      The behavior is undefined ifthis->get_allocator()!= other.get_allocator().

      (library fundamentals TS v3)

      [edit]Parameters

      other - function wrapper to exchange the stored callable object with

      [edit]Return value

      (none)

      Retrieved from "https://en.cppreference.com/mwiki/index.php?title=cpp/experimental/function/swap&oldid=154961"

      [8]ページ先頭

      ©2009-2026 Movatter.jp