diff --git a/smart_ptr.htm b/smart_ptr.htm index 92ad2be..10fe5d6 100644 --- a/smart_ptr.htm +++ b/smart_ptr.htm @@ -70,6 +70,11 @@
shared_ptr
objects.shared_ptr
arrays.A test program, smart_ptr_test.cpp, is @@ -126,6 +131,12 @@
Functions which destroy objects of the pointed to type are prohibited from throwing exceptions by the common requirements.
November 2012. Glen Fernandes provided implementations of make_shared + and allocate_shared for arrays. They achieve a single allocation for an + array that can be initialized with constructor arguments or initializer lists + as well as overloads for default initialization and no value initialization. + See the make_shared and allocate_shared for + arrays page for more information.
January 2002. Peter Dimov reworked all four classes, adding features, fixing bugs, and splitting them into four separate headers, and added weak_ptr. See the compatibility page for a summary of the