Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
std::flat_multimap::swap(3)   C++ Standard Libary  std::flat_multimap::swap(3)

NAME
       std::flat_multimap::swap	- std::flat_multimap::swap

Synopsis
	  void swap( flat_multimap& other ) noexcept;  (since C++23)

	  Exchanges the	contents of the	container adaptor with those of	other.
       Effectively
	  calls

	ranges::swap(compare, other.compare);
	ranges::swap(c.keys, other.c.keys);
	ranges::swap(c.values, other.c.values);

Parameters
	  other	- container adaptor to exchange	the contents with

Return value
	  (none)

Exceptions
	  (none)

Complexity
	  Same as underlying container (typically constant).

Example
	   This	section	is incomplete
	   Reason: no example

See also
	  std::swap(std::flat_multimap)	specializes the	std::swap algorithm
	  (C++23)			(function template)

Category:
	    * Todo no example

http://cppreference.com		  2024.06.10	   std::flat_multimap::swap(3)

Want to link to this manual page? Use this URL:
<https://man.freebsd.org/cgi/man.cgi?query=std::flat_multimap::swap&sektion=3&manpath=FreeBSD+Ports+15.1.quarterly>

home | help