std:: swap (std::indirect)
From cppreference.net
C++
Memory management library
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
std::indirect
| Member functions | ||||
| Observers | ||||
| Modifiers | ||||
| Non-member functions | ||||
|
swap
(std::indirect)
|
||||
| Deduction guides | ||||
| Helper classes | ||||
|
헤더 파일에 정의됨
<memory>
|
||
|
constexpr
void
swap
(
indirect
&
lhs, indirect
&
rhs
)
noexcept ( noexcept ( lhs. swap ( rhs ) ) ) ; |
(C++26부터) | |
std::swap 알고리즘을 std::indirect 에 대해 오버로드합니다. lhs 의 상태와 rhs 의 상태를 교환합니다. 효과적으로 lhs. swap ( rhs ) 를 호출합니다.
매개변수
| lhs, rhs | - |
indirect
상태를 교환할 객체
|
예제
|
이 섹션은 불완전합니다
이유: 예제가 없음 |
참고 항목
|
내용을 교환합니다
(public member function) |