cppreference.com
Create account
Log in
Namespaces
Page
Discussion
Variants
Views
View
Edit
History
Actions
std::experimental::
swap
(std::experimental::any)
From cppreference.com
<
cpp
|
experimental
|
any
C++
Compiler support
Freestanding and hosted
Language
Standard library
Standard library headers
Named requirements
Feature test macros
(C++20)
Language support library
Concepts library
(C++20)
Metaprogramming library
(C++11)
Diagnostics library
General utilities library
Strings library
Containers library
Iterators library
Ranges library
(C++20)
Algorithms library
Numerics library
Localizations library
Input/output library
Filesystem library
(C++17)
Regular expressions library
(C++11)
Concurrency support library
(C++11)
Execution support library
(C++26)
Technical specifications
Symbols index
External libraries
[edit]
Experimental
Technical Specification
Filesystem library
(filesystem TS)
Library fundamentals
(library fundamentals TS)
Library fundamentals 2
(library fundamentals TS v2)
Library fundamentals 3
(library fundamentals TS v3)
Extensions for parallelism
(parallelism TS)
Extensions for parallelism 2
(parallelism TS v2)
Extensions for concurrency
(concurrency TS)
Extensions for concurrency 2
(concurrency TS v2)
Concepts
(concepts TS)
Ranges
(ranges TS)
Reflection
(reflection TS)
Mathematical special functions
(special functions TR)
Experimental Non-TS
Pattern Matching
Linear Algebra
std::execution
Contracts
2D Graphics
[edit]
Library fundamentals
experimental::optional
experimental::any
experimental::basic_string_view
experimental::sample
experimental::shared_ptr
experimental::weak_ptr
experimental::apply
experimental::invocation_type
experimental::raw_invocation_type
experimental::search
experimental::default_searcher
experimental::make_default_searcher
experimental::boyer_moore_searcher
experimental::make_boyer_moore_searcher
experimental::boyer_moore_horspool_searcher
experimental::make_boyer_moore_horspool_searcher
Type-erased and polymorphic allocators
Variable templates for type traits
[edit]
std::experimental::any
Member functions
any::any
any::operator=
Modifiers
any::clear
any::swap
Observers
any::empty
any::type
Non-member functions
swap
(std::experimental::any)
any_cast
[edit]
void
swap
(
any
&
lhs, any
&
rhs
)
noexcept
;
(library fundamentals TS)
Swaps the content of two
any
objects. Calls
lhs.
swap
(
rhs
)
.
[
edit
]
Parameters
lhs, rhs
-
objects to swap
[
edit
]
Return value
(none)
[
edit
]
See also
swap
swaps two
any
objects
(public member function)
[edit]
Category
:
Noindexed pages