Slightly better looking comments in documentation

This commit is contained in:
Glen Fernandes
2017-06-14 11:28:09 -04:00
parent c1820b4a27
commit 074882976f
2 changed files with 12 additions and 12 deletions

View File

@@ -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<class T, class... Args>
shared_ptr<T> make_shared(Args&&... args);
template<class T, class A, class... Args>
shared_ptr<T> 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<class T>
shared_ptr<T> make_shared(std::size_t n);
template<class T, class A>
shared_ptr<T> 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<class T>
shared_ptr<T> make_shared();
template<class T, class A>
shared_ptr<T> 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<class T>
shared_ptr<T> make_shared(std::size_t n, _see below_ v);
template<class T, class A>
shared_ptr<T> 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<class T>
shared_ptr<T> make_shared(_see below_ v);
template<class T, class A>
shared_ptr<T> 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<class T>
shared_ptr<T> make_shared_noinit();
template<class T, class A>
shared_ptr<T> 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<class T>
shared_ptr<T> make_shared_noinit(std::size_t n);
template<class T, class A>

View File

@@ -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<class T, class... Args>
std::unique_ptr<T> make_unique(Args&&... args);
// only if T is not an array type
`// only if T is not an array type`
template<class T>
std::unique_ptr<T> 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<class T>
std::unique_ptr<T> make_unique(std::size_t n);
// only if T is not an array type
`// only if T is not an array type`
template<class T>
std::unique_ptr<T> 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<class T>
std::unique_ptr<T> make_unique_noinit(std::size_t n);
}