<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Mar 9, 2014 at 4:20 AM, Ahmed Charles <span dir="ltr"><<a href="mailto:ahmedcharles@gmail.com" target="_blank">ahmedcharles@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div id=":k54" class="a3s" style="overflow:hidden">+/// Implement make_unique according to N3656. </div></blockquote><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div id=":k54" class="a3s" style="overflow:hidden">
+///<br>
+/// template<class T, class... Args> unique_ptr<T> make_unique(Args&&... args);<br>
+/// Remarks: This function shall not participate in overload resolution unless<br>
+///          T is not an array.<br>
+/// Returns: unique_ptr<T>(new T(std::forward<Args>(args)...)).<br>
+///<br>
+/// template<class T> unique_ptr<T> make_unique(size_t n);<br>
+/// Remarks: This function shall not participate in overload resolution unless<br>
+///          T is an array of unknown bound.<br>
+/// Returns: unique_ptr<T>(new typename remove_extent<T>::type[n]()).<br>
+///<br>
+/// template<class T, class... Args> unspecified make_unique(Args&&...) = delete;<br>
+/// Remarks: This function shall not participate in overload resolution unless<br>
+///          T is an array of known bound.<br></div></blockquote><div><br></div><div>I don't really think this really helps as the doxygen for this routine.... And it would be better to attach the documentation to the specific routines in question and use the standard doxygen format (brief description, detailed, etc) with boring prose.</div>
<div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div id=":k54" class="a3s" style="overflow:hidden">
+///<br>
+/// Use scenarios:<br>
+///<br>
+/// Single object case:<br>
+///<br>
+/// auto p0 = make_unique<int>();<br>
+///<br>
+/// auto p2 = make_unique<std::tuple<int, int>>(0, 1);<br>
+///<br>
+/// Array case:<br>
+///<br>
+/// auto p1 = make_unique<int[]>(2); // value-initializes the array with 0's.<br>
+///</div></blockquote></div></div><br><div>These are useful to include, but like above should be attached to the specific interface to which they apply. Also, make sure they're set up to be rendered as code in doxygen.</div>
</div>