René's URL Explorer Experiment


Title: std::shared_ptr - cppreference.com

Generator: MediaWiki 1.43.8

direct link

Domain: en.cppreference.com

format-detectiontelephone=no

Links:

cppreference.comhttp://en.cppreference.com/
Create accounthttp://en.cppreference.com/index.php?title=Special:CreateAccount&returnto=cpp%2Fmemory%2Fshared+ptr
Log inhttp://en.cppreference.com/index.php?title=Special:UserLogin&returnto=cpp%2Fmemory%2Fshared+ptr
Pagehttp://en.cppreference.com/cpp/memory/shared_ptr
Discussionhttp://en.cppreference.com/Talk:cpp/memory/shared_ptr
http://en.cppreference.com/cpp/memory/shared_ptr
Readhttp://en.cppreference.com/cpp/memory/shared_ptr
View sourcehttp://en.cppreference.com/index.php?title=cpp/memory/shared_ptr&action=edit
View historyhttp://en.cppreference.com/index.php?title=cpp/memory/shared_ptr&action=history
http://en.cppreference.com/cpp/memory/shared_ptr
cpphttp://en.cppreference.com/cpp
memoryhttp://en.cppreference.com/cpp/memory
C++http://en.cppreference.com/cpp
Compiler supporthttp://en.cppreference.com/cpp/compiler_support
Freestanding and hostedhttp://en.cppreference.com/cpp/freestanding
Languagehttp://en.cppreference.com/cpp/language
Standard libraryhttp://en.cppreference.com/cpp/standard_library
Standard library headershttp://en.cppreference.com/cpp/header
Named requirementshttp://en.cppreference.com/cpp/named_req
Feature test macroshttp://en.cppreference.com/cpp/feature_test
Language support libraryhttp://en.cppreference.com/cpp/utility#Language_support
Concepts libraryhttp://en.cppreference.com/cpp/concepts
Diagnostics libraryhttp://en.cppreference.com/cpp/error
Memory management libraryhttp://en.cppreference.com/cpp/memory
Metaprogramming libraryhttp://en.cppreference.com/cpp/meta
General utilities libraryhttp://en.cppreference.com/cpp/utility
Containers libraryhttp://en.cppreference.com/cpp/container
Iterators libraryhttp://en.cppreference.com/cpp/iterator
Ranges libraryhttp://en.cppreference.com/cpp/ranges
Algorithms libraryhttp://en.cppreference.com/cpp/algorithm
Strings libraryhttp://en.cppreference.com/cpp/string
Text processing libraryhttp://en.cppreference.com/cpp/text
Numerics libraryhttp://en.cppreference.com/cpp/numeric
Date and time libraryhttp://en.cppreference.com/cpp/chrono
Input/output libraryhttp://en.cppreference.com/cpp/io
Filesystem libraryhttp://en.cppreference.com/cpp/filesystem
Concurrency support libraryhttp://en.cppreference.com/cpp/thread
Execution control libraryhttp://en.cppreference.com/cpp/execution
Technical specificationshttp://en.cppreference.com/cpp/experimental
Symbols indexhttp://en.cppreference.com/cpp/symbol_index
External librarieshttp://en.cppreference.com/cpp/links/libs
[edit]https://cppreference.com/index.php?title=Template:cpp/navbar_content&action=edit
Memory management libraryhttp://en.cppreference.com/cpp/memory
Allocatorshttp://en.cppreference.com/cpp/memory#Allocators
allocatorhttp://en.cppreference.com/cpp/memory/allocator
allocator_traitshttp://en.cppreference.com/cpp/memory/allocator_traits
allocation_resulthttp://en.cppreference.com/cpp/memory/allocation_result
scoped_allocator_adaptorhttp://en.cppreference.com/cpp/memory/scoped_allocator_adaptor
allocator_arghttp://en.cppreference.com/cpp/memory/allocator_arg
uses_allocatorhttp://en.cppreference.com/cpp/memory/uses_allocator
uses_allocator_construction_argshttp://en.cppreference.com/cpp/memory/uses_allocator_construction_args
make_obj_using_allocatorhttp://en.cppreference.com/cpp/memory/make_obj_using_allocator
pmr::polymorphic_allocatorhttp://en.cppreference.com/cpp/memory/polymorphic_allocator
uninitialized_construct_using_allocatorhttp://en.cppreference.com/cpp/memory/uninitialized_construct_using_allocator
Memory resourceshttp://en.cppreference.com/cpp/memory#Memory_resources
pmr::memory_resourcehttp://en.cppreference.com/cpp/memory/memory_resource
pmr::get_default_resourcehttp://en.cppreference.com/cpp/memory/get_default_resource
pmr::set_default_resourcehttp://en.cppreference.com/cpp/memory/set_default_resource
pmr::new_delete_resourcehttp://en.cppreference.com/cpp/memory/new_delete_resource
pmr::pool_optionshttp://en.cppreference.com/cpp/memory/pool_options
pmr::null_memory_resourcehttp://en.cppreference.com/cpp/memory/null_memory_resource
pmr::synchronized_pool_resourcehttp://en.cppreference.com/cpp/memory/synchronized_pool_resource
pmr::unsynchronized_pool_resourcehttp://en.cppreference.com/cpp/memory/unsynchronized_pool_resource
pmr::monotonic_buffer_resourcehttp://en.cppreference.com/cpp/memory/monotonic_buffer_resource
Explicit lifetime managementhttp://en.cppreference.com/cpp/memory#Explicit_lifetime_management
start_lifetime_ashttp://en.cppreference.com/cpp/memory/start_lifetime_as
start_lifetime_as_arrayhttp://en.cppreference.com/cpp/memory/start_lifetime_as
Types for composite class designhttp://en.cppreference.com/cpp/memory#Types_for_composite_class_design
indirecthttp://en.cppreference.com/cpp/memory/indirect
polymorphichttp://en.cppreference.com/cpp/memory/polymorphic
Miscellaneoushttp://en.cppreference.com/cpp/memory#Miscellaneous
pointer_traitshttp://en.cppreference.com/cpp/memory/pointer_traits
to_addresshttp://en.cppreference.com/cpp/memory/to_address
addressofhttp://en.cppreference.com/cpp/memory/addressof
alignhttp://en.cppreference.com/cpp/memory/align
assume_alignedhttp://en.cppreference.com/cpp/memory/assume_aligned
is_sufficiently_alignedhttp://en.cppreference.com/cpp/memory/is_sufficiently_aligned
C Libraryhttp://en.cppreference.com/cpp/memory/c
mallochttp://en.cppreference.com/cpp/memory/c/malloc
freehttp://en.cppreference.com/cpp/memory/c/free
callochttp://en.cppreference.com/cpp/memory/c/calloc
reallochttp://en.cppreference.com/cpp/memory/c/realloc
aligned_allochttp://en.cppreference.com/cpp/memory/c/aligned_alloc
free_sizedhttp://en.cppreference.com/index.php?title=cpp/memory/c/free_sized&action=edit&redlink=1
free_aligned_sizedhttp://en.cppreference.com/index.php?title=cpp/memory/c/free_aligned_sized&action=edit&redlink=1
memalignmenthttp://en.cppreference.com/index.php?title=cpp/memory/c/memalignment&action=edit&redlink=1
Uninitialized storagehttp://en.cppreference.com/cpp/memory#Uninitialized_storage
raw_storage_iteratorhttp://en.cppreference.com/cpp/memory/raw_storage_iterator
get_temporary_bufferhttp://en.cppreference.com/cpp/memory/get_temporary_buffer
return_temporary_bufferhttp://en.cppreference.com/cpp/memory/return_temporary_buffer
Garbage collector supporthttp://en.cppreference.com/cpp/memory#Garbage_collector_support
declare_reachablehttp://en.cppreference.com/cpp/memory/gc/declare_reachable
declare_no_pointershttp://en.cppreference.com/cpp/memory/gc/declare_no_pointers
pointer_safetyhttp://en.cppreference.com/cpp/memory/gc/pointer_safety
undeclare_reachablehttp://en.cppreference.com/cpp/memory/gc/undeclare_reachable
undeclare_no_pointershttp://en.cppreference.com/cpp/memory/gc/undeclare_no_pointers
get_pointer_safetyhttp://en.cppreference.com/cpp/memory/gc/get_pointer_safety
Specialized algorithmshttp://en.cppreference.com/cpp/algorithm/memory
Low level memorymanagementhttp://en.cppreference.com/cpp/memory/new#Low_level_memory_management
operator newoperator new[]http://en.cppreference.com/cpp/memory/new/operator_new
operator deleteoperator delete[]http://en.cppreference.com/cpp/memory/new/operator_delete
nothrowhttp://en.cppreference.com/cpp/memory/new/nothrow
nothrow_thttp://en.cppreference.com/cpp/memory/new/nothrow_t
new_handlerhttp://en.cppreference.com/cpp/memory/new/new_handler
set_new_handlerhttp://en.cppreference.com/cpp/memory/new/set_new_handler
get_new_handlerhttp://en.cppreference.com/cpp/memory/new/get_new_handler
bad_allochttp://en.cppreference.com/cpp/memory/new/bad_alloc
bad_array_new_lengthhttp://en.cppreference.com/cpp/memory/new/bad_array_new_length
align_val_thttp://en.cppreference.com/cpp/memory/new/align_val_t
destroying_delete_thttp://en.cppreference.com/cpp/memory/new/destroying_delete_t
launderhttp://en.cppreference.com/cpp/utility/launder
Smart pointershttp://en.cppreference.com/cpp/memory#Smart_pointers
unique_ptrhttp://en.cppreference.com/cpp/memory/unique_ptr
weak_ptrhttp://en.cppreference.com/cpp/memory/weak_ptr
auto_ptrhttp://en.cppreference.com/cpp/memory/auto_ptr
owner_lesshttp://en.cppreference.com/cpp/memory/owner_less
owner_lesshttp://en.cppreference.com/cpp/memory/owner_less_void
owner_hashhttp://en.cppreference.com/cpp/memory/owner_hash
owner_equalhttp://en.cppreference.com/cpp/memory/owner_equal
enable_shared_from_thishttp://en.cppreference.com/cpp/memory/enable_shared_from_this
bad_weak_ptrhttp://en.cppreference.com/cpp/memory/bad_weak_ptr
default_deletehttp://en.cppreference.com/cpp/memory/default_delete
out_ptr_thttp://en.cppreference.com/cpp/memory/out_ptr_t
inout_ptr_thttp://en.cppreference.com/cpp/memory/inout_ptr_t
[edit]https://cppreference.com/index.php?title=Template:cpp/memory/navbar_content&action=edit
shared_ptr::shared_ptrhttp://en.cppreference.com/cpp/memory/shared_ptr/shared_ptr
shared_ptr::~shared_ptrhttp://en.cppreference.com/cpp/memory/shared_ptr/~shared_ptr
shared_ptr::operator=http://en.cppreference.com/cpp/memory/shared_ptr/operator%3D
shared_ptr::resethttp://en.cppreference.com/cpp/memory/shared_ptr/reset
shared_ptr::swaphttp://en.cppreference.com/cpp/memory/shared_ptr/swap
shared_ptr::gethttp://en.cppreference.com/cpp/memory/shared_ptr/get
shared_ptr::operator*shared_ptr::operator->http://en.cppreference.com/cpp/memory/shared_ptr/operator*
shared_ptr::operator[]http://en.cppreference.com/cpp/memory/shared_ptr/operator_at
shared_ptr::use_counthttp://en.cppreference.com/cpp/memory/shared_ptr/use_count
shared_ptr::uniquehttp://en.cppreference.com/cpp/memory/shared_ptr/unique
shared_ptr::operator boolhttp://en.cppreference.com/cpp/memory/shared_ptr/operator_bool
shared_ptr::owner_beforehttp://en.cppreference.com/cpp/memory/shared_ptr/owner_before
shared_ptr::owner_hashhttp://en.cppreference.com/cpp/memory/shared_ptr/owner_hash
shared_ptr::owner_equalhttp://en.cppreference.com/cpp/memory/shared_ptr/owner_equal
swap(std::shared_ptr)http://en.cppreference.com/cpp/memory/shared_ptr/swap2
make_sharedmake_shared_for_overwritehttp://en.cppreference.com/cpp/memory/shared_ptr/make_shared
allocate_sharedallocate_shared_for_overwritehttp://en.cppreference.com/cpp/memory/shared_ptr/allocate_shared
static_pointer_castdynamic_pointer_castconst_pointer_castreinterpret_pointer_casthttp://en.cppreference.com/cpp/memory/shared_ptr/pointer_cast
get_deleterhttp://en.cppreference.com/cpp/memory/shared_ptr/get_deleter
operator==operator!=operatoroperator>=operator<=>http://en.cppreference.com/cpp/memory/shared_ptr/operator_cmp
operator<<http://en.cppreference.com/cpp/memory/shared_ptr/operator_ltlt
atomic_xxxhttp://en.cppreference.com/cpp/memory/shared_ptr/atomic
atomichttp://en.cppreference.com/cpp/memory/shared_ptr/atomic2
hashhttp://en.cppreference.com/cpp/memory/shared_ptr/hash
Deduction guideshttp://en.cppreference.com/cpp/memory/shared_ptr/deduction_guides
[edit]https://cppreference.com/index.php?title=Template:cpp/memory/shared_ptr/navbar_content&action=edit
http://en.cppreference.com/cpp/header/memory
delete-expressionhttp://en.cppreference.com/cpp/language/delete
CopyConstructiblehttp://en.cppreference.com/cpp/named_req/CopyConstructible
CopyAssignablehttp://en.cppreference.com/cpp/named_req/CopyAssignable
LessThanComparablehttp://en.cppreference.com/cpp/named_req/LessThanComparable
contextually convertiblehttp://en.cppreference.com/cpp/language/implicit_cast
std::atomichttp://en.cppreference.com/cpp/memory/shared_ptr/atomic2
1 Member typeshttp://en.cppreference.com/cpp/memory/shared_ptr#Member_types
2 Member functionshttp://en.cppreference.com/cpp/memory/shared_ptr#Member_functions
2.1 Modifiershttp://en.cppreference.com/cpp/memory/shared_ptr#Modifiers
2.2 Observershttp://en.cppreference.com/cpp/memory/shared_ptr#Observers
3 Non-member functionshttp://en.cppreference.com/cpp/memory/shared_ptr#Non-member_functions
4 Helper classeshttp://en.cppreference.com/cpp/memory/shared_ptr#Helper_classes
5 Deduction guides (since C++17)http://en.cppreference.com/cpp/memory/shared_ptr#Deduction_guides_(since_C++17)
6 Noteshttp://en.cppreference.com/cpp/memory/shared_ptr#Notes
7 Implementation noteshttp://en.cppreference.com/cpp/memory/shared_ptr#Implementation_notes
8 Examplehttp://en.cppreference.com/cpp/memory/shared_ptr#Example
9 Examplehttp://en.cppreference.com/cpp/memory/shared_ptr#Example_2
10 See alsohttp://en.cppreference.com/cpp/memory/shared_ptr#See_also
(constructor)http://en.cppreference.com/cpp/memory/shared_ptr/shared_ptr
[edit]https://cppreference.com/index.php?title=Template:cpp/memory/shared_ptr/dsc_constructor&action=edit
(destructor)http://en.cppreference.com/cpp/memory/shared_ptr/~shared_ptr
[edit]https://cppreference.com/index.php?title=Template:cpp/memory/shared_ptr/dsc_destructor&action=edit
operator=http://en.cppreference.com/cpp/memory/shared_ptr/operator%3D
[edit]https://cppreference.com/index.php?title=Template:cpp/memory/shared_ptr/dsc_operator%3D&action=edit
resethttp://en.cppreference.com/cpp/memory/shared_ptr/reset
[edit]https://cppreference.com/index.php?title=Template:cpp/memory/shared_ptr/dsc_reset&action=edit
swaphttp://en.cppreference.com/cpp/memory/shared_ptr/swap
[edit]https://cppreference.com/index.php?title=Template:cpp/memory/shared_ptr/dsc_swap&action=edit
gethttp://en.cppreference.com/cpp/memory/shared_ptr/get
[edit]https://cppreference.com/index.php?title=Template:cpp/memory/shared_ptr/dsc_get&action=edit
operator*operator->http://en.cppreference.com/cpp/memory/shared_ptr/operator*
[edit]https://cppreference.com/index.php?title=Template:cpp/memory/shared_ptr/dsc_operator*&action=edit
operator[]http://en.cppreference.com/cpp/memory/shared_ptr/operator_at
[edit]https://cppreference.com/index.php?title=Template:cpp/memory/shared_ptr/dsc_operator_at&action=edit
use_counthttp://en.cppreference.com/cpp/memory/shared_ptr/use_count
[edit]https://cppreference.com/index.php?title=Template:cpp/memory/shared_ptr/dsc_use_count&action=edit
uniquehttp://en.cppreference.com/cpp/memory/shared_ptr/unique
[edit]https://cppreference.com/index.php?title=Template:cpp/memory/shared_ptr/dsc_unique&action=edit
operator boolhttp://en.cppreference.com/cpp/memory/shared_ptr/operator_bool
[edit]https://cppreference.com/index.php?title=Template:cpp/memory/shared_ptr/dsc_operator_bool&action=edit
owner_beforehttp://en.cppreference.com/cpp/memory/shared_ptr/owner_before
[edit]https://cppreference.com/index.php?title=Template:cpp/memory/shared_ptr/dsc_owner_before&action=edit
owner_hashhttp://en.cppreference.com/cpp/memory/shared_ptr/owner_hash
[edit]https://cppreference.com/index.php?title=Template:cpp/memory/shared_ptr/dsc_owner_hash&action=edit
owner_equalhttp://en.cppreference.com/cpp/memory/shared_ptr/owner_equal
[edit]https://cppreference.com/index.php?title=Template:cpp/memory/shared_ptr/dsc_owner_equal&action=edit
make_sharedmake_shared_for_overwritehttp://en.cppreference.com/cpp/memory/shared_ptr/make_shared
[edit]https://cppreference.com/index.php?title=Template:cpp/memory/shared_ptr/dsc_make_shared&action=edit
allocate_sharedallocate_shared_for_overwritehttp://en.cppreference.com/cpp/memory/shared_ptr/allocate_shared
[edit]https://cppreference.com/index.php?title=Template:cpp/memory/shared_ptr/dsc_allocate_shared&action=edit
static_pointer_castdynamic_pointer_castconst_pointer_castreinterpret_pointer_casthttp://en.cppreference.com/cpp/memory/shared_ptr/pointer_cast
static_casthttp://en.cppreference.com/cpp/language/static_cast
dynamic_casthttp://en.cppreference.com/cpp/language/dynamic_cast
const_casthttp://en.cppreference.com/cpp/language/const_cast
reinterpret_casthttp://en.cppreference.com/cpp/language/reinterpret_cast
[edit]https://cppreference.com/index.php?title=Template:cpp/memory/shared_ptr/dsc_pointer_cast&action=edit
get_deleterhttp://en.cppreference.com/cpp/memory/shared_ptr/get_deleter
[edit]https://cppreference.com/index.php?title=Template:cpp/memory/shared_ptr/dsc_get_deleter&action=edit
operator==operator!=operatoroperator>=operator<=>http://en.cppreference.com/cpp/memory/shared_ptr/operator_cmp
[edit]https://cppreference.com/index.php?title=Template:cpp/memory/shared_ptr/dsc_operator_cmp&action=edit
operator<<(std::shared_ptr)http://en.cppreference.com/cpp/memory/shared_ptr/operator_ltlt
[edit]https://cppreference.com/index.php?title=Template:cpp/memory/shared_ptr/dsc_operator_ltlt&action=edit
std::swap(std::shared_ptr)http://en.cppreference.com/cpp/memory/shared_ptr/swap2
[edit]https://cppreference.com/index.php?title=Template:cpp/memory/shared_ptr/dsc_swap2&action=edit
std::atomic_is_lock_free(std::shared_ptr)std::atomic_load(std::shared_ptr)std::atomic_load_explicit(std::shared_ptr)std::atomic_store(std::shared_ptr)std::atomic_store_explicit(std::shared_ptr)std::atomic_exchange(std::shared_ptr)std::atomic_exchange_explicit(std::shared_ptr)std::atomic_compare_exchange_weak(std::shared_ptr)std::atomic_compare_exchange_strong(std::shared_ptr)std::atomic_compare_exchange_weak_explicit(std::shared_ptr)std::atomic_compare_exchange_strong_explicit(std::shared_ptr)http://en.cppreference.com/cpp/memory/shared_ptr/atomic
[edit]https://cppreference.com/index.php?title=Template:cpp/memory/shared_ptr/dsc_atomic&action=edit
std::atomichttp://en.cppreference.com/cpp/memory/shared_ptr/atomic2
[edit]https://cppreference.com/index.php?title=Template:cpp/memory/shared_ptr/dsc_atomic2&action=edit
std::hashhttp://en.cppreference.com/cpp/memory/shared_ptr/hash
[edit]https://cppreference.com/index.php?title=Template:cpp/memory/shared_ptr/dsc_hash&action=edit
Deduction guideshttp://en.cppreference.com/cpp/memory/shared_ptr/deduction_guides
incomplete typehttp://en.cppreference.com/cpp/language/incomplete_type
Feature-testhttp://en.cppreference.com/cpp/utility/feature_test
__cpp_lib_constexpr_memoryhttp://en.cppreference.com/cpp/feature_test#cpp_lib_constexpr_memory
202506Lhttp://en.cppreference.com/cpp/compiler_support/26#cpp_lib_constexpr_memory_202506L
[1]https://stackoverflow.com/questions/43297517/stdshared-ptr-internals-weak-count-more-than-expected
[2]https://www.reddit.com/r/cpp/comments/3eia29/stdshared_ptrs_secret_constructor/ctfeh1p
unique_ptrhttp://en.cppreference.com/cpp/memory/unique_ptr
[edit]https://cppreference.com/index.php?title=Template:cpp/memory/dsc_unique_ptr&action=edit
weak_ptrhttp://en.cppreference.com/cpp/memory/weak_ptr
[edit]https://cppreference.com/index.php?title=Template:cpp/memory/dsc_weak_ptr&action=edit
Categorieshttp://en.cppreference.com/Special:Categories
Pages using deprecated source tagshttp://en.cppreference.com/index.php?title=Category:Pages_using_deprecated_source_tags&action=edit&redlink=1
Pages using deprecated enclose attributeshttp://en.cppreference.com/index.php?title=Category:Pages_using_deprecated_enclose_attributes&action=edit&redlink=1
Support ushttp://www.cppreference.com/support
Recent changeshttp://en.cppreference.com/Special:RecentChanges
FAQhttp://en.cppreference.com/Cppreference:FAQ
Offline versionhttp://en.cppreference.com/Cppreference:Archives
http://en.cppreference.com/cpp/memory/shared_ptr
What links herehttp://en.cppreference.com/Special:WhatLinksHere/cpp/memory/shared_ptr
Related changeshttp://en.cppreference.com/Special:RecentChangesLinked/cpp/memory/shared_ptr
Upload filehttp://upload.cppreference.com/w/Special:Upload
Special pageshttp://en.cppreference.com/Special:SpecialPages
Printable versionjavascript:print();
Permanent linkhttp://en.cppreference.com/index.php?title=cpp/memory/shared_ptr&oldid=184466
Page informationhttp://en.cppreference.com/index.php?title=cpp/memory/shared_ptr&action=info
Deutschhttps://de.cppreference.com/cpp/memory/shared_ptr
Españolhttp://es.cppreference.com/cpp/memory/shared_ptr
Françaishttp://fr.cppreference.com/cpp/memory/shared_ptr
Italianohttp://it.cppreference.com/cpp/memory/shared_ptr
日本語http://ja.cppreference.com/cpp/memory/shared_ptr
Portuguêshttp://pt.cppreference.com/cpp/memory/shared_ptr
Русскийhttp://ru.cppreference.com/cpp/memory/shared_ptr
中文http://zh.cppreference.com/cpp/memory/shared_ptr

Viewport: width=1120

Robots: max-image-preview:standard


URLs of crawlers that visited me.