forked from boostorg/smart_ptr
Slightly better looking comments in documentation
This commit is contained in:
@@ -55,43 +55,43 @@ types.
|
|||||||
[subs=+quotes]
|
[subs=+quotes]
|
||||||
```
|
```
|
||||||
namespace boost {
|
namespace boost {
|
||||||
// only if T is not an array type
|
`// only if T is not an array type`
|
||||||
template<class T, class... Args>
|
template<class T, class... Args>
|
||||||
shared_ptr<T> make_shared(Args&&... args);
|
shared_ptr<T> make_shared(Args&&... args);
|
||||||
template<class T, class A, class... Args>
|
template<class T, class A, class... Args>
|
||||||
shared_ptr<T> allocate_shared(const A& a, Args&&... 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>
|
template<class T>
|
||||||
shared_ptr<T> make_shared(std::size_t n);
|
shared_ptr<T> make_shared(std::size_t n);
|
||||||
template<class T, class A>
|
template<class T, class A>
|
||||||
shared_ptr<T> allocate_shared(const A& a, std::size_t n);
|
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>
|
template<class T>
|
||||||
shared_ptr<T> make_shared();
|
shared_ptr<T> make_shared();
|
||||||
template<class T, class A>
|
template<class T, class A>
|
||||||
shared_ptr<T> allocate_shared(const A& 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>
|
template<class T>
|
||||||
shared_ptr<T> make_shared(std::size_t n, _see below_ v);
|
shared_ptr<T> make_shared(std::size_t n, _see below_ v);
|
||||||
template<class T, class A>
|
template<class T, class A>
|
||||||
shared_ptr<T> allocate_shared(const A& a, std::size_t n, _see below_ v);
|
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>
|
template<class T>
|
||||||
shared_ptr<T> make_shared(_see below_ v);
|
shared_ptr<T> make_shared(_see below_ v);
|
||||||
template<class T, class A>
|
template<class T, class A>
|
||||||
shared_ptr<T> allocate_shared(const A& a, _see below_ v);
|
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>
|
template<class T>
|
||||||
shared_ptr<T> make_shared_noinit();
|
shared_ptr<T> make_shared_noinit();
|
||||||
template<class T, class A>
|
template<class T, class A>
|
||||||
shared_ptr<T> allocate_shared_noinit(const A& 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>
|
template<class T>
|
||||||
shared_ptr<T> make_shared_noinit(std::size_t n);
|
shared_ptr<T> make_shared_noinit(std::size_t n);
|
||||||
template<class T, class A>
|
template<class T, class A>
|
||||||
|
@@ -40,23 +40,23 @@ feature with `std::make_unique`.
|
|||||||
[subs=+quotes]
|
[subs=+quotes]
|
||||||
```
|
```
|
||||||
namespace boost {
|
namespace boost {
|
||||||
// only if T is not an array type
|
`// only if T is not an array type`
|
||||||
template<class T, class... Args>
|
template<class T, class... Args>
|
||||||
std::unique_ptr<T> make_unique(Args&&... 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>
|
template<class T>
|
||||||
std::unique_ptr<T> make_unique(_see below_ v);
|
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>
|
template<class T>
|
||||||
std::unique_ptr<T> make_unique(std::size_t n);
|
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>
|
template<class T>
|
||||||
std::unique_ptr<T> make_unique_noinit();
|
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>
|
template<class T>
|
||||||
std::unique_ptr<T> make_unique_noinit(std::size_t n);
|
std::unique_ptr<T> make_unique_noinit(std::size_t n);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user