diff --git a/include/boost/make_unique.hpp b/include/boost/make_unique.hpp index 4dc82c3..7189d6e 100644 --- a/include/boost/make_unique.hpp +++ b/include/boost/make_unique.hpp @@ -1,10 +1,9 @@ /* -(c) 2014 Glen Joseph Fernandes - +Copyright 2014 Glen Joseph Fernandes +(glenjofe@gmail.com) -Distributed under the Boost Software -License, Version 1.0. -http://boost.org/LICENSE_1_0.txt +Distributed under the Boost Software License, Version 1.0. +(http://www.boost.org/LICENSE_1_0.txt) */ #ifndef BOOST_MAKE_UNIQUE_HPP_INCLUDED #define BOOST_MAKE_UNIQUE_HPP_INCLUDED diff --git a/make_shared_array.html b/make_shared_array.html index 2deb798..d826266 100644 --- a/make_shared_array.html +++ b/make_shared_array.html @@ -105,8 +105,7 @@ const E& v);

Common Requirements

template<class T, class A>
shared_ptr<T> -allocate_shared(const A& a, -args);

+allocate_shared(const A& a, args);
Requires:
T is of the form E[N] or @@ -190,6 +189,9 @@ allocate_shared(const A& a, std::size_t n);
Remarks:
This overload shall only participate in overload resolution when T is of the form E[].
+
Example:
+
boost::allocate_shared<int[]>(std::allocator<int>(), 8);
@@ -202,6 +204,9 @@ allocate_shared(const A& a);
Remarks:
This overload shall only participate in overload resolution when T is of the form E[N].
+
Example:
+
boost::allocate_shared<int[8]>(std::allocator<int>());
@@ -216,6 +221,9 @@ initialized to v.
Remarks:
This overload shall only participate in overload resolution when T is of the form E[].
+
Example:
+
boost::allocate_shared<double[]>(std::allocator<double>(), 8, 1.0);
@@ -229,6 +237,9 @@ where each array element of type E is initialized to
Remarks:
This overload shall only participate in overload resolution when T is of the form E[N].
+
Example:
+
boost::allocate_shared<double[8]>(std::allocator<double>(), 1.0);
@@ -241,6 +252,9 @@ allocate_shared_noinit(const A& a, std::size_t n);
Remarks:
This overload shall only participate in overload resolution when T is of the form E[].
+
Example:
+
boost::allocate_shared_noinit<int[]>(std::allocator<int>(), 8);
@@ -253,6 +267,9 @@ allocate_shared_noinit(const A& a);
Remarks:
This overload shall only participate in overload resolution when T is of the form E[N].
+
Example:
+
boost::allocate_shared_noinit<int[8]>(std::allocator<int>());
@@ -265,6 +282,8 @@ make_shared(std::size_t n);
Remarks:
This overload shall only participate in overload resolution when T is of the form E[].
+
Example:
+
boost::make_shared<int[]>(8);
@@ -277,6 +296,8 @@ make_shared();
Remarks:
This overload shall only participate in overload resolution when T is of the form E[N].
+
Example:
+
boost::make_shared<int[8]>();
@@ -289,6 +310,8 @@ make_shared(std::size_t n, const E& v);
Remarks:
This overload shall only participate in overload resolution when T is of the form E[].
+
Example:
+
boost::make_shared<double[]>(8, 1.0);
@@ -301,7 +324,8 @@ make_shared(const E& v);
Remarks:
This overload shall only participate in overload resolution when T is of the form E[N].
- +
Example:
+
boost::make_shared<double[8]>(1.0);

template<class T>
shared_ptr<T> @@ -313,6 +337,8 @@ make_shared_noinit(std::size_t n);

Remarks:
This overload shall only participate in overload resolution when T is of the form E[].
+
Example:
+
boost::make_shared_noinit<int[]>(8);
@@ -325,6 +351,8 @@ make_shared_noinit();
Remarks:
This overload shall only participate in overload resolution when T is of the form E[N].
+
Example:
+
boost::make_shared_noinit<int[8]>();
diff --git a/make_unique.html b/make_unique.html index 7500a87..fdd5fd9 100644 --- a/make_unique.html +++ b/make_unique.html @@ -58,8 +58,7 @@ function template make_unique for convenient creation of

Common Requirements

template<class T, Args>
-std::unique_ptr<T> -make_unique(args);

+std::unique_ptr<T> make_unique(args);
Effects:
Allocates storage for an object of type T (or @@ -109,6 +108,8 @@ initialized to std::forward<Args>(args)....
Remarks:
This overload shall only participate in overload resolution when T is not an array type.
+
Example:
+
boost::make_unique<double>(1.0);
@@ -121,7 +122,8 @@ initialized to std::move(value).
Remarks:
This overload shall only participate in overload resolution when T is not an array type.
- +
Example:
+
boost::make_unique<point>({1.0, -1.0});

template<class T>
std::unique_ptr<T> @@ -133,6 +135,8 @@ make_unique(std::size_t size);

Remarks:
This overload shall only participate in overload resolution when T is of the form E[].
+
Example:
+
boost::make_unique<int[]>(8);
@@ -145,6 +149,8 @@ type T.
Remarks:
This overload shall only participate in overload resolution when T is not an array type.
+
Example:
+
boost::make_unique_noinit<std::tm>();
@@ -157,6 +163,8 @@ type E[size].
Remarks:
This overload shall only participate in overload resolution when T is of the form E[].
+
Example:
+
boost::make_unique_noinit<char[]>(64);