forked from boostorg/core
Minor formatting changes in pointer_traits documentation
This commit is contained in:
@ -74,64 +74,58 @@ namespace boost {
|
|||||||
|
|
||||||
[section Member types]
|
[section Member types]
|
||||||
|
|
||||||
[heading `pointer_traits`]
|
[variablelist
|
||||||
|
[[`typedef` ['see below] `element_type;`]
|
||||||
[ordered_list
|
[[variablelist
|
||||||
[`typedef` ['see below] `element_type;`
|
|
||||||
[variablelist
|
|
||||||
[[Type]
|
[[Type]
|
||||||
[`T::element_type` if such a type exists; otherwise `U` if `T` is a
|
[`T::element_type` if such a type exists; otherwise `U` if `T` is a
|
||||||
class template instantiation of the form `Pointer<U, Args>`, where
|
class template instantiation of the form `Pointer<U, Args>`, where
|
||||||
`Args` is zero or more type arguments; otherwise the specialization
|
`Args` is zero or more type arguments; otherwise the specialization
|
||||||
is ill-formed.]]]]
|
is ill-formed.]]]]]
|
||||||
[`typedef` ['see below] `difference_type;`
|
[[`typedef` ['see below] `difference_type;`]
|
||||||
[variablelist
|
[[variablelist
|
||||||
[[Type]
|
[[Type]
|
||||||
[`T::difference_type` if such a type exists; otherwise
|
[`T::difference_type` if such a type exists; otherwise
|
||||||
`std::ptrdiff_t`.]]]]
|
`std::ptrdiff_t`.]]]]]
|
||||||
[`template<class U> struct rebind_to { typedef` ['see below] `type; };`
|
[[`template<class U> struct rebind_to { typedef` ['see below] `type; };`]
|
||||||
[variablelist
|
[[variablelist
|
||||||
[[Type]
|
[[Type]
|
||||||
[`type` is `T::rebind<U>` if such a type exists; otherwise,
|
[`type` is `T::rebind<U>` if such a type exists; otherwise,
|
||||||
`Pointer<V, Args>` if `T` is a class template instantiation of the
|
`Pointer<V, Args>` if `T` is a class template instantiation of the
|
||||||
form `Pointer<T, Args>`, where `Args` is zero or more type
|
form `Pointer<T, Args>`, where `Args` is zero or more type
|
||||||
arguments; otherwise, the instantiation of `rebind_to` is
|
arguments; otherwise, the instantiation of `rebind_to` is
|
||||||
ill-formed.]]]]]
|
ill-formed.]]]]]]
|
||||||
|
|
||||||
[endsect]
|
[endsect]
|
||||||
|
|
||||||
[section Member functions]
|
[section Member functions]
|
||||||
|
|
||||||
[heading `pointer_traits`]
|
[variablelist pointer_traits
|
||||||
|
[[`static pointer pointer_to(`['see below] `v);`]
|
||||||
[ordered_list
|
[[variablelist
|
||||||
[`static pointer pointer_to(`['see below] `v);`
|
|
||||||
[variablelist
|
|
||||||
[[Remark]
|
[[Remark]
|
||||||
[If `element_type` is a void type, the type of `v` is unspecified;
|
[If `element_type` is a void type, the type of `v` is unspecified;
|
||||||
otherwise, it is `element_type&`.]]
|
otherwise, it is `element_type&`.]]
|
||||||
[[Returns]
|
[[Returns]
|
||||||
[A pointer to `v` obtained by calling `T::pointer_to(v)`.]]]]
|
[A pointer to `v` obtained by calling `T::pointer_to(v)`.]]]]]
|
||||||
[`static element_type* to_address(pointer v) noexcept;`
|
[[`static element_type* to_address(pointer v) noexcept;`]
|
||||||
[variablelist
|
[[variablelist
|
||||||
[[Requires]
|
[[Requires]
|
||||||
[`v` is not a null pointer.]]
|
[`v` is not a null pointer.]]
|
||||||
[[Returns]
|
[[Returns]
|
||||||
[A pointer of type `element_type*` that references the same location
|
[A pointer of type `element_type*` that references the same location
|
||||||
as the argument.]]]]]
|
as the argument.]]]]]]
|
||||||
|
|
||||||
[heading `pointer_traits<T*>`]
|
[variablelist pointer_traits<T*>
|
||||||
|
[[`static pointer pointer_to(`['see below] `v) noexcept;`]
|
||||||
[ordered_list
|
[[variablelist
|
||||||
[`static pointer pointer_to(`['see below] `v) noexcept;`
|
|
||||||
[variablelist
|
|
||||||
[[Remark]
|
[[Remark]
|
||||||
[If `element_type` is a void type, the type of `v` is unspecified;
|
[If `element_type` is a void type, the type of `v` is unspecified;
|
||||||
otherwise, it is `element_type&`.]]
|
otherwise, it is `element_type&`.]]
|
||||||
[[Returns]
|
[[Returns]
|
||||||
[The result of `std::addressof(v)`.]]]]
|
[The result of `std::addressof(v)`.]]]]]
|
||||||
[`static element_type* to_address(pointer v) noexcept;`
|
[[`static element_type* to_address(pointer v) noexcept;`]
|
||||||
[variablelist [[Returns] [The value of `v`.]]]]]
|
[[variablelist [[Returns] [The value of `v`.]]]]]]
|
||||||
|
|
||||||
[endsect]
|
[endsect]
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user