Span: Add related non member function to class documentation.

pull/8504/head
Vincent Coubard 2018-10-23 11:38:37 +01:00
parent a0786adbc4
commit 03d308d114
1 changed files with 12 additions and 0 deletions

View File

@ -780,6 +780,8 @@ private:
* *
* @return True if Spans in input have the same size and the same content and * @return True if Spans in input have the same size and the same content and
* false otherwise. * false otherwise.
*
* @relates Span
*/ */
template<typename T, typename U, ptrdiff_t LhsExtent, ptrdiff_t RhsExtent> template<typename T, typename U, ptrdiff_t LhsExtent, ptrdiff_t RhsExtent>
bool operator==(const Span<T, LhsExtent> &lhs, const Span<U, RhsExtent> &rhs) bool operator==(const Span<T, LhsExtent> &lhs, const Span<U, RhsExtent> &rhs)
@ -833,6 +835,8 @@ bool operator==(T (&lhs)[LhsExtent], const Span<T, RhsExtent> &rhs)
* *
* @return True if arrays in input do not have the same size or the same content * @return True if arrays in input do not have the same size or the same content
* and false otherwise. * and false otherwise.
*
* @relates Span
*/ */
template<typename T, typename U, ptrdiff_t LhsExtent, ptrdiff_t RhsExtent> template<typename T, typename U, ptrdiff_t LhsExtent, ptrdiff_t RhsExtent>
bool operator!=(const Span<T, LhsExtent> &lhs, const Span<U, RhsExtent> &rhs) bool operator!=(const Span<T, LhsExtent> &lhs, const Span<U, RhsExtent> &rhs)
@ -882,6 +886,8 @@ bool operator!=(T (&lhs)[LhsExtent], const Span<T, RhsExtent> &rhs)
* *
* @note This helper avoids the typing of template parameter when Span is * @note This helper avoids the typing of template parameter when Span is
* created 'inline'. * created 'inline'.
*
* @relates Span
*/ */
template<typename T, size_t Size> template<typename T, size_t Size>
Span<T, Size> make_Span(T (&elements)[Size]) Span<T, Size> make_Span(T (&elements)[Size])
@ -920,6 +926,8 @@ Span<T, Extent> make_Span(T *elements)
* *
* @note This helper avoids the typing of template parameter when Span is * @note This helper avoids the typing of template parameter when Span is
* created 'inline'. * created 'inline'.
*
* @relates Span
*/ */
template<typename T> template<typename T>
Span<T> make_Span(T *array_ptr, ptrdiff_t array_size) Span<T> make_Span(T *array_ptr, ptrdiff_t array_size)
@ -957,6 +965,8 @@ Span<const T, Extent> make_const_Span(const T (&elements)[Extent])
* *
* @note This helper avoids the typing of template parameter when Span is * @note This helper avoids the typing of template parameter when Span is
* created 'inline'. * created 'inline'.
*
* @relates Span
*/ */
template<size_t Extent, typename T> template<size_t Extent, typename T>
Span<const T, Extent> make_const_Span(const T *elements) Span<const T, Extent> make_const_Span(const T *elements)
@ -977,6 +987,8 @@ Span<const T, Extent> make_const_Span(const T *elements)
* *
* @note This helper avoids the typing of template parameter when Span is * @note This helper avoids the typing of template parameter when Span is
* created 'inline'. * created 'inline'.
*
* @relates Span
*/ */
template<typename T> template<typename T>
Span<const T> make_const_Span(T *array_ptr, size_t array_size) Span<const T> make_const_Span(T *array_ptr, size_t array_size)