From b4594eab3b5096075e98f5b1138cb8b6c4fe2aad Mon Sep 17 00:00:00 2001 From: Glen Fernandes Date: Mon, 19 Nov 2012 08:08:27 +0000 Subject: [PATCH] Update smart_ptr.htm with link to make_shared_array.htm which lists the many overloads of make_shared and allocate_shared for arrays. [SVN r81419] --- smart_ptr.htm | 11 +++++++++++ 1 file changed, 11 insertions(+) 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 @@ <boost/make_shared.hpp> Efficient creation of shared_ptr objects. + + make_shared and allocate_shared for arrays + <boost/make_shared.hpp> + Efficient creation of 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.

History and Acknowledgements

+

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