Movatterモバイル変換


[0]ホーム

URL:


cppreference.com
Namespaces
Variants
    Actions

      std::flat_set<Key,Compare,KeyContainer>::swap

      From cppreference.com
      <cpp‎ |container‎ |flat set

      [edit template]
       
       
       
       
      void swap( flat_set& other)noexcept;
      (since C++23)
      Exchanges the contents of the container adaptor with those ofother. Effectively calls
      ranges::swap(compare, other.compare);ranges::swap(c, other.c);

      Contents

      [edit]Parameters

      other - container adaptor to exchange the contents with

      [edit]Return value

      (none)

      [edit]Exceptions

      (none)

      [edit]Complexity

      Same as underlying container (typically constant).

      [edit]Example

      This section is incomplete
      Reason: no example

      [edit]See also

      specializes thestd::swap algorithm
      (function template)[edit]
      Retrieved from "https://en.cppreference.com/mwiki/index.php?title=cpp/container/flat_set/swap&oldid=167633"

      [8]ページ先頭

      ©2009-2025 Movatter.jp