René's URL Explorer Experiment


Title: std::swap(std::shared_ptr) - cppreference.com

Generator: MediaWiki 1.43.8

direct link

Domain: zh.cppreference.com

format-detectiontelephone=no

Links:

cppreference.comhttps://zh.cppreference.com/
创建账号https://zh.cppreference.com/index.php?title=Special:%E5%88%9B%E5%BB%BA%E8%B4%A6%E6%88%B7&returnto=cpp%2Fmemory%2Fshared+ptr%2Fswap2
登录https://zh.cppreference.com/index.php?title=Special:%E7%94%A8%E6%88%B7%E7%99%BB%E5%BD%95&returnto=cpp%2Fmemory%2Fshared+ptr%2Fswap2
页面https://zh.cppreference.com/cpp/memory/shared_ptr/swap2
讨论https://zh.cppreference.com/index.php?title=Talk:cpp/memory/shared_ptr/swap2&action=edit&redlink=1
https://zh.cppreference.com/cpp/memory/shared_ptr/swap2
不转换https://zh.cppreference.com/index.php?title=cpp/memory/shared_ptr/swap2&variant=zh
简体https://zh.cppreference.com/index.php?title=cpp/memory/shared_ptr/swap2&variant=zh-hans
繁體https://zh.cppreference.com/index.php?title=cpp/memory/shared_ptr/swap2&variant=zh-hant
大陆简体https://zh.cppreference.com/index.php?title=cpp/memory/shared_ptr/swap2&variant=zh-cn
香港繁體https://zh.cppreference.com/index.php?title=cpp/memory/shared_ptr/swap2&variant=zh-hk
澳門繁體https://zh.cppreference.com/index.php?title=cpp/memory/shared_ptr/swap2&variant=zh-mo
大马简体https://zh.cppreference.com/index.php?title=cpp/memory/shared_ptr/swap2&variant=zh-my
新加坡简体https://zh.cppreference.com/index.php?title=cpp/memory/shared_ptr/swap2&variant=zh-sg
臺灣正體https://zh.cppreference.com/index.php?title=cpp/memory/shared_ptr/swap2&variant=zh-tw
阅读https://zh.cppreference.com/cpp/memory/shared_ptr/swap2
查看源代码https://zh.cppreference.com/index.php?title=cpp/memory/shared_ptr/swap2&action=edit
查看历史https://zh.cppreference.com/index.php?title=cpp/memory/shared_ptr/swap2&action=history
https://zh.cppreference.com/cpp/memory/shared_ptr/swap2
cpphttps://zh.cppreference.com/cpp
memoryhttps://zh.cppreference.com/cpp/memory
shared ptrhttps://zh.cppreference.com/cpp/memory/shared_ptr
[编辑模板]https://zh.cppreference.com/index.php?title=Template:cpp/memory/swap2&action=edit
C++https://zh.cppreference.com/cpp
编译器支持https://zh.cppreference.com/cpp/compiler_support
自立实现与有宿主实现https://zh.cppreference.com/cpp/freestanding
语言https://zh.cppreference.com/cpp/language
标准库https://zh.cppreference.com/cpp/standard_library
标准库标头https://zh.cppreference.com/cpp/header
具名要求https://zh.cppreference.com/cpp/named_req
功能特性测试宏https://zh.cppreference.com/cpp/feature_test
语言支持库https://zh.cppreference.com/cpp/utility#语言支持
概念库https://zh.cppreference.com/cpp/concepts
诊断库https://zh.cppreference.com/cpp/error
内存管理库https://zh.cppreference.com/cpp/memory
元编程库https://zh.cppreference.com/cpp/meta
通用工具库https://zh.cppreference.com/cpp/utility
容器库https://zh.cppreference.com/cpp/container
迭代器库https://zh.cppreference.com/cpp/iterator
范围库https://zh.cppreference.com/cpp/ranges
算法库https://zh.cppreference.com/cpp/algorithm
字符串库https://zh.cppreference.com/cpp/string
文本处理库https://zh.cppreference.com/cpp/text
数值库https://zh.cppreference.com/cpp/numeric
日期和时间库https://zh.cppreference.com/cpp/chrono
输入/输出库https://zh.cppreference.com/cpp/io
文件系统库https://zh.cppreference.com/cpp/filesystem
并发支持库https://zh.cppreference.com/cpp/thread
执行控制库https://zh.cppreference.com/cpp/execution
技术规范https://zh.cppreference.com/cpp/experimental
符号索引https://zh.cppreference.com/cpp/symbol_index
外部库https://zh.cppreference.com/cpp/links/libs
[编辑]https://zh.cppreference.com/index.php?title=Template:cpp/navbar_content&action=edit
内存管理库https://zh.cppreference.com/cpp/memory
分配器https://zh.cppreference.com/cpp/memory#分配器
allocatorhttps://zh.cppreference.com/cpp/memory/allocator
allocator_traitshttps://zh.cppreference.com/cpp/memory/allocator_traits
allocation_resulthttps://zh.cppreference.com/cpp/memory/allocation_result
scoped_allocator_adaptorhttps://zh.cppreference.com/cpp/memory/scoped_allocator_adaptor
allocator_arghttps://zh.cppreference.com/cpp/memory/allocator_arg
uses_allocatorhttps://zh.cppreference.com/cpp/memory/uses_allocator
uses_allocator_construction_argshttps://zh.cppreference.com/cpp/memory/uses_allocator_construction_args
make_obj_using_allocatorhttps://zh.cppreference.com/cpp/memory/make_obj_using_allocator
pmr::polymorphic_allocatorhttps://zh.cppreference.com/cpp/memory/polymorphic_allocator
uninitialized_construct_using_allocatorhttps://zh.cppreference.com/cpp/memory/uninitialized_construct_using_allocator
内存资源https://zh.cppreference.com/cpp/memory#内存资源
pmr::memory_resourcehttps://zh.cppreference.com/cpp/memory/memory_resource
pmr::get_default_resourcehttps://zh.cppreference.com/cpp/memory/get_default_resource
pmr::set_default_resourcehttps://zh.cppreference.com/cpp/memory/set_default_resource
pmr::new_delete_resourcehttps://zh.cppreference.com/cpp/memory/new_delete_resource
pmr::pool_optionshttps://zh.cppreference.com/cpp/memory/pool_options
pmr::null_memory_resourcehttps://zh.cppreference.com/cpp/memory/null_memory_resource
pmr::synchronized_pool_resourcehttps://zh.cppreference.com/cpp/memory/synchronized_pool_resource
pmr::unsynchronized_pool_resourcehttps://zh.cppreference.com/cpp/memory/unsynchronized_pool_resource
pmr::monotonic_buffer_resourcehttps://zh.cppreference.com/cpp/memory/monotonic_buffer_resource
显式生存期管理https://zh.cppreference.com/cpp/memory#显式生存期管理
start_lifetime_ashttps://zh.cppreference.com/cpp/memory/start_lifetime_as
start_lifetime_as_arrayhttps://zh.cppreference.com/cpp/memory/start_lifetime_as
用于复合类设计的类型https://zh.cppreference.com/cpp/memory#用于复合类设计的类型
indirecthttps://zh.cppreference.com/cpp/memory/indirect
polymorphichttps://zh.cppreference.com/cpp/memory/polymorphic
杂项https://zh.cppreference.com/cpp/memory#杂项
pointer_traitshttps://zh.cppreference.com/cpp/memory/pointer_traits
to_addresshttps://zh.cppreference.com/cpp/memory/to_address
addressofhttps://zh.cppreference.com/cpp/memory/addressof
alignhttps://zh.cppreference.com/cpp/memory/align
assume_alignedhttps://zh.cppreference.com/cpp/memory/assume_aligned
is_sufficiently_alignedhttps://zh.cppreference.com/cpp/memory/is_sufficiently_aligned
C 库https://zh.cppreference.com/cpp/memory/c
mallochttps://zh.cppreference.com/cpp/memory/c/malloc
freehttps://zh.cppreference.com/cpp/memory/c/free
callochttps://zh.cppreference.com/cpp/memory/c/calloc
reallochttps://zh.cppreference.com/cpp/memory/c/realloc
aligned_allochttps://zh.cppreference.com/cpp/memory/c/aligned_alloc
free_sizedhttps://zh.cppreference.com/index.php?title=cpp/memory/c/free_sized&action=edit&redlink=1
free_aligned_sizedhttps://zh.cppreference.com/index.php?title=cpp/memory/c/free_aligned_sized&action=edit&redlink=1
memalignmenthttps://zh.cppreference.com/index.php?title=cpp/memory/c/memalignment&action=edit&redlink=1
未初始化存储https://zh.cppreference.com/cpp/memory#未初始化存储
raw_storage_iteratorhttps://zh.cppreference.com/cpp/memory/raw_storage_iterator
get_temporary_bufferhttps://zh.cppreference.com/cpp/memory/get_temporary_buffer
return_temporary_bufferhttps://zh.cppreference.com/cpp/memory/return_temporary_buffer
垃圾收集器支持https://zh.cppreference.com/cpp/memory#垃圾收集器支持
declare_reachablehttps://zh.cppreference.com/cpp/memory/gc/declare_reachable
declare_no_pointershttps://zh.cppreference.com/cpp/memory/gc/declare_no_pointers
pointer_safetyhttps://zh.cppreference.com/cpp/memory/gc/pointer_safety
undeclare_reachablehttps://zh.cppreference.com/cpp/memory/gc/undeclare_reachable
undeclare_no_pointershttps://zh.cppreference.com/cpp/memory/gc/undeclare_no_pointers
get_pointer_safetyhttps://zh.cppreference.com/cpp/memory/gc/get_pointer_safety
专门算法https://zh.cppreference.com/cpp/algorithm/memory
低层内存管理https://zh.cppreference.com/cpp/memory/new#低层内存管理
operator newoperator new[]https://zh.cppreference.com/cpp/memory/new/operator_new
operator deleteoperator delete[]https://zh.cppreference.com/cpp/memory/new/operator_delete
nothrowhttps://zh.cppreference.com/cpp/memory/new/nothrow
nothrow_thttps://zh.cppreference.com/cpp/memory/new/nothrow_t
new_handlerhttps://zh.cppreference.com/cpp/memory/new/new_handler
set_new_handlerhttps://zh.cppreference.com/cpp/memory/new/set_new_handler
get_new_handlerhttps://zh.cppreference.com/cpp/memory/new/get_new_handler
bad_allochttps://zh.cppreference.com/cpp/memory/new/bad_alloc
bad_array_new_lengthhttps://zh.cppreference.com/cpp/memory/new/bad_array_new_length
align_val_thttps://zh.cppreference.com/cpp/memory/new/align_val_t
destroying_delete_thttps://zh.cppreference.com/cpp/memory/new/destroying_delete_t
launderhttps://zh.cppreference.com/cpp/utility/launder
智能指针https://zh.cppreference.com/cpp/memory#智能指针
unique_ptrhttps://zh.cppreference.com/cpp/memory/unique_ptr
shared_ptrhttps://zh.cppreference.com/cpp/memory/shared_ptr
weak_ptrhttps://zh.cppreference.com/cpp/memory/weak_ptr
auto_ptrhttps://zh.cppreference.com/cpp/memory/auto_ptr
owner_lesshttps://zh.cppreference.com/cpp/memory/owner_less
owner_lesshttps://zh.cppreference.com/cpp/memory/owner_less_void
owner_hashhttps://zh.cppreference.com/cpp/memory/owner_hash
owner_equalhttps://zh.cppreference.com/cpp/memory/owner_equal
enable_shared_from_thishttps://zh.cppreference.com/cpp/memory/enable_shared_from_this
bad_weak_ptrhttps://zh.cppreference.com/cpp/memory/bad_weak_ptr
default_deletehttps://zh.cppreference.com/cpp/memory/default_delete
out_ptr_thttps://zh.cppreference.com/cpp/memory/out_ptr_t
inout_ptr_thttps://zh.cppreference.com/cpp/memory/inout_ptr_t
[编辑]https://zh.cppreference.com/index.php?title=Template:cpp/memory/navbar_content&action=edit
std::shared_ptrhttps://zh.cppreference.com/cpp/memory/shared_ptr
shared_ptr::shared_ptrhttps://zh.cppreference.com/cpp/memory/shared_ptr/shared_ptr
shared_ptr::~shared_ptrhttps://zh.cppreference.com/cpp/memory/shared_ptr/~shared_ptr
shared_ptr::operator=https://zh.cppreference.com/cpp/memory/shared_ptr/operator%3D
shared_ptr::resethttps://zh.cppreference.com/cpp/memory/shared_ptr/reset
shared_ptr::swaphttps://zh.cppreference.com/cpp/memory/shared_ptr/swap
shared_ptr::gethttps://zh.cppreference.com/cpp/memory/shared_ptr/get
shared_ptr::operator*shared_ptr::operator->https://zh.cppreference.com/cpp/memory/shared_ptr/operator*
shared_ptr::operator[]https://zh.cppreference.com/cpp/memory/shared_ptr/operator_at
shared_ptr::use_counthttps://zh.cppreference.com/cpp/memory/shared_ptr/use_count
shared_ptr::uniquehttps://zh.cppreference.com/cpp/memory/shared_ptr/unique
shared_ptr::operator boolhttps://zh.cppreference.com/cpp/memory/shared_ptr/operator_bool
shared_ptr::owner_beforehttps://zh.cppreference.com/cpp/memory/shared_ptr/owner_before
shared_ptr::owner_hashhttps://zh.cppreference.com/cpp/memory/shared_ptr/owner_hash
shared_ptr::owner_equalhttps://zh.cppreference.com/cpp/memory/shared_ptr/owner_equal
make_sharedmake_shared_for_overwritehttps://zh.cppreference.com/cpp/memory/shared_ptr/make_shared
allocate_sharedallocate_shared_for_overwritehttps://zh.cppreference.com/cpp/memory/shared_ptr/allocate_shared
static_pointer_castdynamic_pointer_castconst_pointer_castreinterpret_pointer_casthttps://zh.cppreference.com/cpp/memory/shared_ptr/pointer_cast
get_deleterhttps://zh.cppreference.com/cpp/memory/shared_ptr/get_deleter
operator==operator!=operatoroperator>=operator<=>https://zh.cppreference.com/cpp/memory/shared_ptr/operator_cmp
operator<<https://zh.cppreference.com/cpp/memory/shared_ptr/operator_ltlt
atomic_xxxhttps://zh.cppreference.com/cpp/memory/shared_ptr/atomic
atomichttps://zh.cppreference.com/cpp/memory/shared_ptr/atomic2
hashhttps://zh.cppreference.com/cpp/memory/shared_ptr/hash
推导指引https://zh.cppreference.com/cpp/memory/shared_ptr/deduction_guides
[编辑]https://zh.cppreference.com/index.php?title=Template:cpp/memory/shared_ptr/navbar_content&action=edit
https://zh.cppreference.com/cpp/header/memory
1 参数https://zh.cppreference.com/cpp/memory/shared_ptr/swap2#参数
2 复杂度https://zh.cppreference.com/cpp/memory/shared_ptr/swap2#复杂度
3 示例https://zh.cppreference.com/cpp/memory/shared_ptr/swap2#示例
4 参阅https://zh.cppreference.com/cpp/memory/shared_ptr/swap2#参阅
swaphttps://zh.cppreference.com/cpp/algorithm/swap
[编辑]https://zh.cppreference.com/index.php?title=Template:cpp/algorithm/dsc_swap&action=edit
swaphttps://zh.cppreference.com/cpp/memory/shared_ptr/swap
[编辑]https://zh.cppreference.com/index.php?title=Template:cpp/memory/dsc_swap&action=edit
分类https://zh.cppreference.com/Special:%E9%A1%B5%E9%9D%A2%E5%88%86%E7%B1%BB
使用已弃用source标签的页面https://zh.cppreference.com/index.php?title=Category:%E4%BD%BF%E7%94%A8%E5%B7%B2%E5%BC%83%E7%94%A8source%E6%A0%87%E7%AD%BE%E7%9A%84%E9%A1%B5%E9%9D%A2&action=edit&redlink=1
首页https://zh.cppreference.com/%E9%A6%96%E9%A1%B5
最近更改https://zh.cppreference.com/Special:%E6%9C%80%E8%BF%91%E6%9B%B4%E6%94%B9
随机页面https://zh.cppreference.com/Special:%E9%9A%8F%E6%9C%BA%E9%A1%B5%E9%9D%A2
MediaWiki帮助https://www.mediawiki.org/wiki/Special:MyLanguage/Help:Contents
https://zh.cppreference.com/cpp/memory/shared_ptr/swap2
链入页面https://zh.cppreference.com/Special:%E9%93%BE%E5%85%A5%E9%A1%B5%E9%9D%A2/cpp/memory/shared_ptr/swap2
相关更改https://zh.cppreference.com/Special:%E9%93%BE%E5%87%BA%E6%9B%B4%E6%94%B9/cpp/memory/shared_ptr/swap2
上传文件http://upload.cppreference.com/w/Special:Upload
特殊页面https://zh.cppreference.com/Special:%E7%89%B9%E6%AE%8A%E9%A1%B5%E9%9D%A2
可打印版javascript:print();
固定链接https://zh.cppreference.com/index.php?title=cpp/memory/shared_ptr/swap2&oldid=52460
页面信息https://zh.cppreference.com/index.php?title=cpp/memory/shared_ptr/swap2&action=info
Deutschhttps://de.cppreference.com/cpp/memory/shared_ptr/swap2
Englishhttp://en.cppreference.com/cpp/memory/shared_ptr/swap2
Españolhttp://es.cppreference.com/cpp/memory/shared_ptr/swap2
Françaishttp://fr.cppreference.com/cpp/memory/shared_ptr/swap2
Italianohttp://it.cppreference.com/cpp/memory/shared_ptr/swap2
日本語http://ja.cppreference.com/cpp/memory/shared_ptr/swap2
Portuguêshttp://pt.cppreference.com/cpp/memory/shared_ptr/swap2
Русскийhttp://ru.cppreference.com/cpp/memory/shared_ptr/swap2

Viewport: width=1120

Robots: max-image-preview:standard


URLs of crawlers that visited me.