C++ åèæå
- C++11
- C++14
- C++17
- C++20
- C++ ç¼è¯å¨æ¯ææ åµè¡¨
- ç¬ç«ä¸å®¿ä¸»å®ç°
- C++ è¯è¨
- C++ å ³é®è¯
- é¢å¤çå¨
- C++ æ ååºå¤´æä»¶
- å ·åè¦æ±
- åè½ç¹æ§æµè¯ (C++20)
- å·¥å ·åº
- ç±»åæ¯æï¼åºæ¬ç±»åãRTTIãç±»åç¹æ§ï¼
- æ¦å¿µåº (C++20)
- é误å¤ç
- 卿å å管ç
- æ¥æåæ¶é´å·¥å ·
- å符串åº
- 容å¨åº
- std::array
- std::vector
- std::map
- std::unordered_map
- std::priority_queue
- std::span
- std::forward_list
- std::forward_list<T,Allocator>::forward_list
- std::forward_list<T,Allocator>::~forward_list
- std::forward_list<T,Allocator>::operator=
- std::forward_list<T,Allocator>::unique
- std::forward_list<T,Allocator>::reverse
- std::forward_list<T,Allocator>::sort
- std::forward_list çæ¨å¯¼æå¼
- std::forward_list<T,Allocator>::merge
- std::forward_list<T,Allocator>::splice_after
- std::forward_list<T,Allocator>::remove, remove_if
- operator==,!=,<,<=,>,>=,<=>(std::forward_list)
- std::swap(std::forward_list)
- std::erase, std::erase_if (std::forward_list)
- std::forward_list<T,Allocator>::swap
- std::forward_list<T,Allocator>::erase_after
- std::forward_list<T,Allocator>::push_front
- std::forward_list<T,Allocator>::emplace_front
- std::forward_list<T,Allocator>::pop_front
- std::forward_list<T,Allocator>::resize
- std::forward_list<T,Allocator>::empty
- std::forward_list<T,Allocator>::max_size
- std::forward_list<T,Allocator>::clear
- std::forward_list<T,Allocator>::insert_after
- std::forward_list<T,Allocator>::emplace_after
- std::forward_list<T,Allocator>::begin, std::forward_list<T,Allocator>::cbegin
- std::forward_list<T,Allocator>::end, std::forward_list<T,Allocator>::cend
- std::forward_list<T,Allocator>::assign
- std::forward_list<T,Allocator>::get_allocator
- std::forward_list<T,Allocator>::front
- std::forward_list<T,Allocator>::before_begin, cbefore_begin
- std::deque
- std::list
- std::set
- std::multiset
- std::multimap
- std::unordered_set
- std::unordered_multiset
- std::unordered_multimap
- std::stack
- std::queue
- std::vector<bool>
- ç»ç¹ææ (C++17)
- 注é
- è¿ä»£å¨åº
- èå´åº (C++20)
- ç®æ³åº
- æ°å¼åº
- è¾å ¥/è¾åºåº
- æä»¶ç³»ç»åº
- æ¬å°ååº
- æ£å表达å¼åº
- ååæä½åº
- çº¿ç¨æ¯æåº
- å®éªæ§ C++ ç¹æ§
- æç¨çèµæº
- ç´¢å¼
- std 符å·ç´¢å¼
- åç¨æ¯æ (C++20)
- C++ å ³é®è¯
ä½ç½®ï¼é¦é¡µ > C++ åèæå >容å¨åº >std::forward_list > std::forward_list<T,Allocator>::swap
std::forward_list<T,Allocator>::swap
| void swap( forward_list& other ); |
(C++11 èµ·) (C++17 å) |
|
| void swap( forward_list& other ) noexcept(/* see below */); |
(C++17 èµ·) | |
å°å
å®¹ä¸ other ç交æ¢ãä¸å¨å个å
ç´ ä¸è°ç¨ä»»ä½ç§»å¨ãå¤å¶æäº¤æ¢æä½ã
ææè¿ä»£å¨åå¼ç¨ä¿æåæ³ã卿ä½åï¼ä¿ææ¤å®¹å¨ä¸å°¾åå¼çè¿ä»£å¨æä»£æ¤å®¹å¨æå¦ä¸å®¹å¨æ¯æªæå®çã
|
è¥ std::allocator_traits<allocator_type>::propagate_on_container_swap::value 为 true ï¼åç¨éæå |
(C++11 èµ·) |
åæ°
| other | - | è¦ä¸ä¹äº¤æ¢å 容çå®¹å¨ |
è¿åå¼
ï¼æ ï¼
å¼å¸¸
|
ï¼æ ï¼ |
(C++17 å) |
|
noexcept è§å®ï¼Â Â
noexcept(std::allocator_traits<Allocator>::is_always_equal::value) |
(C++17 èµ·) |
å¤æåº¦
常æ°ã
åé
| (C++11) |
ç¹å std::swap ç®æ³ (彿°æ¨¡æ¿) |