diff --git a/make_unique.html b/make_unique.html
index b6d7a7d..ab4db62 100644
--- a/make_unique.html
+++ b/make_unique.html
@@ -13,9 +13,9 @@
Examples
History
The header file <boost/make_unique.hpp> provides a family of
- overloaded function template make_unique
for convenient
- creation of unique_ptr
objects.
The header file <boost/make_unique.hpp> provides overloaded
+ function template make_unique
for convenient creation of
+ unique_ptr
objects.
namespace boost { template<typename U> // U is not array @@ -69,20 +69,20 @@ unique_ptr<U> make_unique_noinit();
template<typename U> // U is T[] unique_ptr<U> make_unique(size_t size);
-Requires: The expression
new U()
shall be +Requires: The expression
new T[size]()
shall be well-formed.Effects: Constructs an array of objects of type
+U
and sizesize
via the expression -new U[size]()
.new T[size]()
.
template<typename U> // U is T[] unique_ptr<U> make_unique_noinit(size_t size);
-Requires: The expression
new U
shall be +Requires: The expression
new T[size]
shall be well-formed.Effects: Constructs an array of objects of type
+U
and sizesize
via the expression -new U[size]
.new T[size]
.
For objects with value-initialization.
diff --git a/smart_ptr.htm b/smart_ptr.htm index c16dceb..3956aaf 100644 --- a/smart_ptr.htm +++ b/smart_ptr.htm @@ -62,7 +62,7 @@ described in Bjarne Stroustrup's "The C++ Programming Language", 3rd edition, Section 14.4, Resource Management.Additionally, the smart pointer library provides efficient factory functions
- for creating shared_ptr
objects: