diff --git a/src/corelib/tools/qspan.qdoc b/src/corelib/tools/qspan.qdoc index 59fbc06b9ec..04c8315958e 100644 --- a/src/corelib/tools/qspan.qdoc +++ b/src/corelib/tools/qspan.qdoc @@ -279,7 +279,7 @@ */ /*! - \fn template template > QSpan::QSpan(It first, qsizetype count) + \fn template template ::if_compatible_iterator> QSpan::QSpan(It first, qsizetype count) Constructs a QSpan referencing the data starting at \a first and having length \a count. @@ -291,7 +291,7 @@ */ /*! - \fn template template > QSpan::QSpan(It first, It last) + \fn template template ::if_compatible_iterator> QSpan::QSpan(It first, It last) Constructs a QSpan referencing the data starting at \a first and having length (\a last - \a first). @@ -304,8 +304,8 @@ /*! \fn template template QSpan::QSpan(q20::type_identity_t (&arr)[N]); - \fn template template = true> QSpan::QSpan(std::array &arr); - \fn template template = true> QSpan::QSpan(const std::array &arr); + \fn template template ::if_qualification_conversion = true> QSpan::QSpan(std::array &arr); + \fn template template ::if_qualification_conversion = true> QSpan::QSpan(const std::array &arr); Constructs a QSpan referencing the data in the supplied array \a arr. @@ -320,7 +320,7 @@ */ /*! - \fn template template = true> QSpan::QSpan(Range &&r) + \fn template template ::if_compatible_range = true> QSpan::QSpan(Range &&r) Constructs a QSpan referencing the data in the supplied range \a r. @@ -329,8 +329,8 @@ */ /*! - \fn template template = true> QSpan::QSpan(QSpan other); - \fn template template = true> QSpan::QSpan(std::span other); + \fn template template ::if_qualification_conversion = true> QSpan::QSpan(QSpan other); + \fn template template ::if_qualification_conversion = true> QSpan::QSpan(std::span other); Constructs a QSpan referencing the data in the supplied span \a other. @@ -346,7 +346,7 @@ // /*! - \fn template QSpan::size() const + \fn template auto QSpan::size() const Returns the size of the span, that is, the number of elements it references. @@ -354,7 +354,7 @@ */ /*! - \fn template QSpan::size_bytes() const + \fn template auto QSpan::size_bytes() const Returns the size of the span in bytes, that is, the number of elements multiplied by \c{sizeof(T)}. @@ -363,8 +363,8 @@ */ /*! - \fn template QSpan::empty() const - \fn template QSpan::isEmpty() const + \fn template auto QSpan::empty() const + \fn template auto QSpan::isEmpty() const Returns whether the span is empty, that is, whether \c{size() == 0}. @@ -390,7 +390,7 @@ */ /*! - \fn template QSpan::front() const + \fn template auto QSpan::front() const Returns a reference to the first element in the span. @@ -400,7 +400,7 @@ */ /*! - \fn template QSpan::back() const + \fn template auto QSpan::back() const Returns a reference to the last element in the span. @@ -410,7 +410,7 @@ */ /*! - \fn template QSpan::data() const + \fn template auto QSpan::data() const Returns a pointer to the beginning of the span. @@ -424,7 +424,7 @@ // /*! - \fn template QSpan::begin() const + \fn template auto QSpan::begin() const Returns an interator pointing at the beginning of the span. @@ -435,7 +435,7 @@ */ /*! - \fn template QSpan::end() const + \fn template auto QSpan::end() const Returns an iterator pointing to one past the end of the span. @@ -446,7 +446,7 @@ */ /*! - \fn template QSpan::cbegin() const + \fn template auto QSpan::cbegin() const Returns a const_iterator pointing to the beginning of the span. @@ -461,7 +461,7 @@ */ /*! - \fn template QSpan::cend() const + \fn template auto QSpan::cend() const Returns a const_iterator pointing to one past the end of the span. @@ -469,7 +469,7 @@ */ /*! - \fn template QSpan::rbegin() const + \fn template auto QSpan::rbegin() const Returns a reverse_iterator pointing to the beginning of the reversed span. @@ -477,7 +477,7 @@ */ /*! - \fn template QSpan::rend() const + \fn template auto QSpan::rend() const Returns a reverse_iterator pointing to one past the end of the reversed span. @@ -485,7 +485,7 @@ */ /*! - \fn template QSpan::crbegin() const + \fn template auto QSpan::crbegin() const Returns a const_reverse_iterator pointing to the beginning of the reversed span. @@ -493,7 +493,7 @@ */ /*! - \fn template QSpan::crend() const + \fn template auto QSpan::crend() const Returns a const_reverse_iterator pointing to one past the end of the reversed span. @@ -505,7 +505,7 @@ // /*! - \fn template template QSpan::first() const + \fn template template auto QSpan::first() const \keyword first-t Returns a fixed-sized span of size \c{Count} referencing the first \c{Count} elements of \c{*this}. @@ -517,7 +517,7 @@ */ /*! - \fn template template QSpan::last() const + \fn template template auto QSpan::last() const \keyword last-t Returns a fixed-sized span of size \c{Count} referencing the last \c{Count} elements of \c{*this}. @@ -529,7 +529,7 @@ */ /*! - \fn template template QSpan::subspan() const + \fn template template auto QSpan::subspan() const \keyword subspan-t1 Returns a span of size \c{E - Offset} referencing the remainder of this span @@ -546,7 +546,7 @@ #if 0 // needs fix for QTBUG-118080 integrated into qt5.git /*! - \fn template template QSpan::subspan() const + \fn template template auto QSpan::subspan() const \keyword subspan-t2 Returns a span of size \c{Count} referencing the \c{Count} elements of this @@ -568,7 +568,7 @@ // /*! - \fn template QSpan::first(qsizetype n) const + \fn template auto QSpan::first(qsizetype n) const \keyword first-n Returns a variable-sized span of size \a n referencing the first \a n elements of \c{*this}. @@ -584,7 +584,7 @@ */ /*! - \fn template QSpan::last(qsizetype n) const + \fn template auto QSpan::last(qsizetype n) const \keyword last-n Returns a variable-sized span of size \a n referencing the last \a n elements of \c{*this}. @@ -599,8 +599,8 @@ */ /*! - \fn template QSpan::subspan(qsizetype pos) const - \fn template QSpan::sliced(qsizetype pos) const + \fn template auto QSpan::subspan(qsizetype pos) const + \fn template auto QSpan::sliced(qsizetype pos) const \keyword subspan-n1 Returns a variable-sized span of size \c{size() - pos} referencing the @@ -618,8 +618,8 @@ */ /*! - \fn template QSpan::subspan(qsizetype pos, qsizetype n) const - \fn template QSpan::sliced(qsizetype pos, qsizetype n) const + \fn template auto QSpan::subspan(qsizetype pos, qsizetype n) const + \fn template auto QSpan::sliced(qsizetype pos, qsizetype n) const \keyword subspan-n2 Returns a variable-sized span of size \a n referencing the \a n elements of