From 074882976f0e1b55c2ae747e168b185d416d6414 Mon Sep 17 00:00:00 2001 From: Glen Fernandes Date: Wed, 14 Jun 2017 11:28:09 -0400 Subject: [PATCH] Slightly better looking comments in documentation --- doc/smart_ptr/make_shared.adoc | 14 +++++++------- doc/smart_ptr/make_unique.adoc | 10 +++++----- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/doc/smart_ptr/make_shared.adoc b/doc/smart_ptr/make_shared.adoc index dc2d688..af59deb 100644 --- a/doc/smart_ptr/make_shared.adoc +++ b/doc/smart_ptr/make_shared.adoc @@ -55,43 +55,43 @@ types. [subs=+quotes] ``` namespace boost { - // only if T is not an array type + `// only if T is not an array type` template shared_ptr make_shared(Args&&... args); template shared_ptr allocate_shared(const A& a, Args&&... args); - // only if T is an array type of the form U[] + `// only if T is an array type of the form U[]` template shared_ptr make_shared(std::size_t n); template shared_ptr allocate_shared(const A& a, std::size_t n); - // only if T is an array type of the form U[N] + `// only if T is an array type of the form U[N]` template shared_ptr make_shared(); template shared_ptr allocate_shared(const A& a); - // only if T is an array type of the form U[] + `// only if T is an array type of the form U[]` template shared_ptr make_shared(std::size_t n, _see below_ v); template shared_ptr allocate_shared(const A& a, std::size_t n, _see below_ v); - // only if T is an array type of the form U[N] + `// only if T is an array type of the form U[N]` template shared_ptr make_shared(_see below_ v); template shared_ptr allocate_shared(const A& a, _see below_ v); - // only if T is not an array type of the form U[] + `// only if T is not an array type of the form U[]` template shared_ptr make_shared_noinit(); template shared_ptr allocate_shared_noinit(const A& a); - // only if T is an array type of the form U[N] + `// only if T is an array type of the form U[N]` template shared_ptr make_shared_noinit(std::size_t n); template diff --git a/doc/smart_ptr/make_unique.adoc b/doc/smart_ptr/make_unique.adoc index 048f9c6..30b7137 100644 --- a/doc/smart_ptr/make_unique.adoc +++ b/doc/smart_ptr/make_unique.adoc @@ -40,23 +40,23 @@ feature with `std::make_unique`. [subs=+quotes] ``` namespace boost { - // only if T is not an array type + `// only if T is not an array type` template std::unique_ptr make_unique(Args&&... args); - // only if T is not an array type + `// only if T is not an array type` template std::unique_ptr make_unique(_see below_ v); - // only if T is an array type of the form U[] + `// only if T is an array type of the form U[]` template std::unique_ptr make_unique(std::size_t n); - // only if T is not an array type + `// only if T is not an array type` template std::unique_ptr make_unique_noinit(); - // only if T is an array type of the form U[] + `// only if T is an array type of the form U[]` template std::unique_ptr make_unique_noinit(std::size_t n); }