cppreference.com
Create account
Log in
Namespaces
Page
Discussion
Variants
Views
View
Edit
History
Actions
std::experimental::basic_string_view<CharT,Traits>::
swap
From cppreference.com
<
cpp
|
experimental
|
basic string view
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::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
Modifiers
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>
[edit]
constexpr
void
swap
(
basic_string_view
&
v
)
noexcept
;
(library fundamentals TS)
Exchanges the view with that of
v
.
[
edit
]
Parameters
v
-
view to swap with
[
edit
]
Return value
(none)
[
edit
]
Complexity
Constant.
Category
:
Noindexed pages