std::experimental::ranges:: swap (ranges::tagged)
| 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 |
| Utility components | ||||
| Function objects | ||||
| Metaprogramming and type traits | ||||
| Tagged pairs and tuples | ||||
| Member functions | ||||
| Non-member functions | ||||
|
ranges::swap
(ranges::tagged)
|
||||
| Helper classes | ||||
|
friend
constexpr
void
swap
(
tagged
&
lhs, tagged
&
rhs
)
noexcept
(
noexcept
(
lhs.
swap
(
rhs
)
)
)
requires Swappable < Base > ; |
||
* this 와 rhs 의 내용을 교환합니다, lhs. swap ( rhs ) ; 와 같이 수행됩니다.
이 함수는 일반적인 unqualified 또는 qualified lookup 으로는 보이지 않으며, argument-dependent lookup 에서만 찾을 수 있습니다 (tagged가 인자들의 연관 클래스일 때).
참고 사항
표준 라이브러리의 대부분의 비멤버
swap
과 달리, 이
swap
은 함수 템플릿이 아닌
tagged
본문 내에서 선언된 숨은 friend 함수입니다. 함수 선언에서의
tagged
는 주입된 클래스 이름입니다.
참고 항목
두 개의
tagged
객체 내용을 교환합니다
(public member function) |