std::experimental::basic_string_view::
swap
From cppreference.com
<
cpp
|
experimental
|
basic string view
C++
Language
Standard library headers
Concepts
Utilities library
Strings library
Containers library
Algorithms library
Iterators library
Numerics library
Input/output library
Localizations library
Regular expressions library
(C++11)
Atomic operations library
(C++11)
Thread support library
(C++11)
Filesystem library
(C++17)
Technical Specifications
Technical specifications
Filesystem library
(filesystem TS)
Library fundamentals
(library fundamentals TS)
Library fundamentals 2
(library fundamentals 2 TS)
Extensions for parallelism
(parallelism TS)
Concepts
(concepts TS)
Extensions for concurrency
(concurrency TS)
Special mathematical functions
(special math TR)
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
std::experimental::basic_string_view
Member functions
basic_string_view::basic_string_view
basic_string_view::operator=
Iterators
basic_string_view::begin
basic_string_view::cbegin
basic_string_view::end
basic_string_view::cend
basic_string_view::rbegin
basic_string_view::crbegin
basic_string_view::rend
basic_string_view::crend
Element access
basic_string_view::at
basic_string_view::operator[]
basic_string_view::front
basic_string_view::back
basic_string_view::data
Capacity
basic_string_view::size
basic_string_view::length
basic_string_view::max_size
basic_string_view::empty
Modifers
basic_string_view::remove_prefix
basic_string_view::remove_suffix
basic_string_view::swap
Operations
basic_string_view::to_string
basic_string_view::operator basic_string
basic_string_view::copy
basic_string_view::substr
basic_string_view::compare
basic_string_view::find
basic_string_view::rfind
basic_string_view::find_first_of
basic_string_view::find_last_of
basic_string_view::find_first_not_of
basic_string_view::find_last_not_of
Constants
basic_string_view::npos
Non-member functions
operator==
operator!=
operator<
operator>
operator<=
operator>=
operator<<
Helper classes
hash
<std::string_view>
hash
<std::wstring_view>
hash
<std::u16string_view>
hash
<std::u32string_view>
constexpr
void
swap
(
basic_string_view
&
v
)
;
(library fundamentals TS)
Exchanges the view with that of
v
.
Contents
1
Parameters
2
Return value
3
Exceptions
4
Complexity
[
edit
]
Parameters
v
-
view to swap with
[
edit
]
Return value
(none)
[
edit
]
Exceptions
noexcept
specification:
noexcept
[
edit
]
Complexity
Constant.
Category
:
unconditionally noexcept