8#include <QtCore/qarraydatapointer.h>
9#include <QtCore/qnamespace.h>
10#include <QtCore/qhashfunctions.h>
11#include <QtCore/qiterator.h>
12#include <QtCore/qcontainertools_impl.h>
13#include <QtCore/qnamespace.h>
14#include <QtCore/qttypetraits.h>
18#include <initializer_list>
26 template <
typename V,
typename U>
qsizetype indexOf(
const QList<V> &list,
const U &u, qsizetype from)
noexcept;
27 template <
typename V,
typename U>
qsizetype lastIndexOf(
const QList<V> &list,
const U &u, qsizetype from)
noexcept;
36 Self *
self() {
return static_cast<Self *>(
this); }
37 const Self *
self()
const {
return static_cast<
const Self *>(
this); }
40 template <
typename AT = T>
42 template <
typename AT = T>
45 template <
typename AT = T>
48 return self()->indexOf(t) != -1;
60template <>
struct QListSpecialMethods<QByteArray>;
63#if !defined(QT_STRICT_QLIST_ITERATORS) && (QT_VERSION >= QT_VERSION_CHECK(6
, 6
, 0
)) && !defined(Q_OS_WIN)
64#define QT_STRICT_QLIST_ITERATORS
68template<
typename T>
class QVector :
public QList<T> {};
80 class DisableRValueRefs {};
82 friend class ::tst_QList;
96 using const_pointer =
const T *;
97 using reference = T &;
98 using const_reference =
const T &;
111 friend class QList<T>;
114#ifdef QT_STRICT_QLIST_ITERATORS
120 using value_type = T;
121#ifdef QT_COMPILER_HAS_LWG3346
124 using element_type = value_type;
125 using iterator_category =
std::random_access_iterator_tag;
127 using reference = T &;
130#ifndef QT_STRICT_QLIST_ITERATORS
131 inline constexpr explicit iterator(T *n) : i(n) {}
135 inline T &
operator[](qsizetype j)
const {
return *(i + j); }
148 inline constexpr bool operator==(pointer p)
const {
return i == p; }
149 inline constexpr bool operator!=(pointer p)
const {
return i != p; }
155#if QT_DEPRECATED_SINCE(6
, 3
) && !defined(QT_STRICT_QLIST_ITERATORS)
157 "the implicit conversion between a QList/QVector::iterator "
181 friend class QList<T>;
183 const T *i =
nullptr;
184#ifdef QT_STRICT_QLIST_ITERATORS
190 using value_type = T;
191#ifdef QT_COMPILER_HAS_LWG3346
194 using element_type =
const value_type;
195 using iterator_category =
std::random_access_iterator_tag;
196 using pointer =
const T *;
197 using reference =
const T &;
200#ifndef QT_STRICT_QLIST_ITERATORS
201 inline constexpr explicit const_iterator(
const T *n) : i(n) {}
206 inline const T &
operator[](qsizetype j)
const {
return *(i + j); }
219 inline constexpr bool operator==(pointer p)
const {
return i == p; }
220 inline constexpr bool operator!=(pointer p)
const {
return i != p; }
226#if QT_DEPRECATED_SINCE(6
, 3
) && !defined(QT_STRICT_QLIST_ITERATORS)
228 "the implicit conversion between a QList/QVector::const_iterator "
230 inline operator const T*()
const {
return i; }
256 void resize_internal(qsizetype i);
259 const std::less<
const T*> less = {};
260 return !less(d->end(), i.i) && !less(i.i, d->begin());
263 void verify([[maybe_unused]] qsizetype pos = 0, [[maybe_unused]] qsizetype n = 1)
const
266 Q_ASSERT(pos <= size());
268 Q_ASSERT(n <= size() - pos);
277 constexpr QList()
noexcept =
default;
282 d->appendInitialize(size);
284 QList(qsizetype size, parameter_type t)
288 d->copyAppend(size, t);
295 d->copyAppend(args.begin(), args.end());
303 template <
typename InputIterator, if_input_iterator<InputIterator> =
true>
304 QList(InputIterator i1, InputIterator i2)
306 if constexpr (!
std::is_convertible_v<
typename std::iterator_traits<InputIterator>::iterator_category,
std::forward_iterator_tag>) {
307 std::copy(i1, i2,
std::back_inserter(*
this));
309 const auto distance =
std::distance(i1, i2);
311 d = DataPointer(qsizetype(distance));
314 if constexpr (std::is_same_v<std::decay_t<InputIterator>, iterator> ||
315 std::is_same_v<std::decay_t<InputIterator>, const_iterator>) {
316 d->copyAppend(i1.i, i2.i);
318 d->appendIteratorRange(i1, i2);
326 inline explicit QList(
const String &str)
333 d->appendUninitialized(size);
341 template <
typename U = T>
344 if (size() != other.size())
346 if (begin() == other.begin())
350 return std::equal(begin(), end(), other.begin(), other.end());
352 template <
typename U = T>
355 return !(*
this == other);
358 template <
typename U = T>
359 QTypeTraits::compare_lt_result_container<QList, U> operator<(
const QList &other)
const
360 noexcept(
noexcept(std::lexicographical_compare<
typename QList<U>::const_iterator,
361 typename QList::const_iterator>(
362 std::declval<QList<U>>().begin(), std::declval<QList<U>>().end(),
363 other.begin(), other.end())))
365 return std::lexicographical_compare(begin(), end(),
366 other.begin(), other.end());
369 template <
typename U = T>
373 return other < *
this;
376 template <
typename U = T>
377 QTypeTraits::compare_lt_result_container<QList, U> operator<=(
const QList &other)
const
378 noexcept(
noexcept(other < std::declval<QList<U>>()))
380 return !(other < *
this);
383 template <
typename U = T>
387 return !(*
this < other);
403 inline bool isEmpty()
const noexcept {
return d->size == 0; }
407 resize_internal(size);
408 if (size >
this->size())
409 d->appendInitialize(size);
411 void resize(qsizetype size, parameter_type c)
413 resize_internal(size);
414 if (size >
this->size())
415 d->copyAppend(size -
this->size(), c);
419 resize_internal(size);
420 if (size >
this->size())
421 d->appendUninitialized(size);
434 const_pointer
data()
const noexcept {
return d->data(); }
435 const_pointer
constData()
const noexcept {
return d->data(); }
439 if (d->needsDetach()) {
441 DataPointer detached(d.allocatedCapacity());
448 const_reference
at(qsizetype i)
const noexcept
450 Q_ASSERT_X(size_t(i) < size_t(d->size),
"QList::at",
"index out of range");
455 Q_ASSERT_X(size_t(i) < size_t(d->size),
"QList::operator[]",
"index out of range");
459 const_reference
operator[](qsizetype i)
const noexcept {
return at(i); }
460 void append(parameter_type t) { emplaceBack(t); }
464 if constexpr (DataPointer::pass_parameter_by_value) {
467 emplaceBack(
std::move(t));
472 append(l.constBegin(), l.constEnd());
476 if constexpr (DataPointer::pass_parameter_by_value) {
479 emplaceFront(
std::move(t));
482 void prepend(parameter_type t) { emplaceFront(t); }
484 template<
typename... Args>
487 template <
typename ...Args>
491 {
return emplace(i, t); }
495 Q_ASSERT_X(isValidIterator(before),
"QList::insert",
"The specified iterator argument 'before' is invalid");
496 return insert(before, 1, t);
500 Q_ASSERT_X(isValidIterator(before),
"QList::insert",
"The specified iterator argument 'before' is invalid");
501 return insert(std::distance(constBegin(), before), n, t);
505 Q_ASSERT_X(isValidIterator(before),
"QList::insert",
"The specified iterator argument 'before' is invalid");
506 return insert(std::distance(constBegin(), before), std::move(t));
509 if constexpr (DataPointer::pass_parameter_by_value) {
514 return emplace(i,
std::move(t));
524 template <
typename InputIterator, if_input_iterator<InputIterator> =
true>
526 { d.assign(first, last);
return *
this; }
529 {
return assign(l.begin(), l.end()); }
531 template <
typename ...Args>
534 Q_ASSERT_X(isValidIterator(before),
"QList::emplace",
"The specified iterator argument 'before' is invalid");
538 template <
typename ...Args>
547 Q_ASSERT_X(i >= 0 && i < d->size,
"QList<T>::replace",
"index out of range");
554 if constexpr (DataPointer::pass_parameter_by_value) {
558 Q_ASSERT_X(i >= 0 && i < d->size,
"QList<T>::replace",
"index out of range");
561 d.data()[i] = std::move(t);
565 void remove(qsizetype i, qsizetype n = 1);
578 template <
typename AT>
580 template <
typename AT>
582 template <
typename AT>
586 template <
typename AT = T>
589 return qsizetype(std::count(data(), data() + size(), t));
593 template <
typename AT = T>
596 return QtPrivate::sequential_erase_with_copy(*
this, t);
599 template <
typename AT = T>
602 return QtPrivate::sequential_erase_one(*
this, t);
605 template <
typename Predicate>
608 return QtPrivate::sequential_erase_if(*
this, pred);
611 T
takeAt(qsizetype i) { T t =
std::move((*
this)[i]); remove(i);
return t; }
612 void move(qsizetype from, qsizetype to)
614 Q_ASSERT_X(from >= 0 && from < size(),
"QList::move(qsizetype, qsizetype)",
"'from' is out-of-range");
615 Q_ASSERT_X(to >= 0 && to < size(),
"QList::move(qsizetype, qsizetype)",
"'to' is out-of-range");
619 T *
const b = d->begin();
621 std::rotate(b + from, b + from + 1, b + to + 1);
623 std::rotate(b + to, b + from, b + from + 1);
636 reverse_iterator
rbegin() {
return reverse_iterator(end()); }
637 reverse_iterator
rend() {
return reverse_iterator(begin()); }
638 const_reverse_iterator
rbegin()
const noexcept {
return const_reverse_iterator(end()); }
639 const_reverse_iterator
rend()
const noexcept {
return const_reverse_iterator(begin()); }
640 const_reverse_iterator
crbegin()
const noexcept {
return const_reverse_iterator(end()); }
641 const_reverse_iterator
crend()
const noexcept {
return const_reverse_iterator(begin()); }
648 inline const T &
first()
const noexcept { Q_ASSERT(!
isEmpty());
return *begin(); }
651 inline const T &
last()
const noexcept { Q_ASSERT(!
isEmpty());
return *(end()-1); }
655 QList<T>
mid(qsizetype pos, qsizetype len = -1)
const;
658 { verify(0, n);
return QList<T>(begin(), begin() + n); }
660 { verify(0, n);
return QList<T>(end() - n, end()); }
662 { verify(pos, 0);
return QList<T>(begin() + pos, end()); }
664 { verify(pos, n);
return QList<T>(begin() + pos, begin() + pos + n); }
666 T
value(qsizetype i)
const {
return value(i, T()); }
667 T
value(qsizetype i, parameter_type defaultValue)
const;
670 Q_ASSERT_X(i >= 0 && i < size() && j >= 0 && j < size(),
671 "QList<T>::swap",
"index out of range");
673 qSwap(d->begin()[i], d->begin()[j]);
684 template <
typename ...Args>
685 reference
emplace_back(Args&&... args) {
return emplaceBack(
std::forward<Args>(args)...); }
688 {
return d->size == 0; }
689 inline reference
front() {
return first(); }
690 inline const_reference
front()
const noexcept {
return first(); }
691 inline reference
back() {
return last(); }
692 inline const_reference
back()
const noexcept {
return last(); }
703 {
QList n = *
this; n += l;
return n; }
705 {
return std::move(*
this += l); }
707 {
QList n = *
this; n +=
std::move(l);
return n; }
709 {
return std::move(*
this +=
std::move(l)); }
711 { append(t);
return *
this; }
712 inline QList<T> &operator<< (parameter_type t)
713 { append(t);
return *
this; }
714 inline QList<T> &operator<<(
const QList<T> &l)
715 { *
this += l;
return *
this; }
717 { *
this +=
std::move(l);
return *
this; }
719 { append(
std::move(t));
return *
this; }
720 inline QList<T> &operator<<(rvalue_ref t)
721 { append(
std::move(t));
return *
this; }
730 template<qsizetype N>
733 return QList<T>({
nullptr,
const_cast<T *>(t), N });
737template <
typename InputIterator,
738 typename ValueType =
typename std::iterator_traits<InputIterator>::value_type,
739 QtPrivate::IfIsInputIterator<InputIterator> =
true>
743inline void QList<T>::resize_internal(qsizetype newSize)
745 Q_ASSERT(newSize >= 0);
747 if (d->needsDetach() || newSize > capacity() - d.freeSpaceAtBegin()) {
748 d.detachAndGrow(QArrayData::GrowsAtEnd, newSize - d.size,
nullptr,
nullptr);
749 }
else if (newSize < size()) {
750 d->truncate(newSize);
758 if (asize <= capacity() - d.freeSpaceAtBegin()) {
759 if (d->flags() & Data::CapacityReserved)
761 if (!d->isShared()) {
763 d->setFlag(Data::CapacityReserved);
768 DataPointer detached(qMax(asize, size()));
769 detached->copyAppend(d->begin(), d->end());
770 if (detached.d_ptr())
771 detached->setFlag(Data::CapacityReserved);
780 if (d->needsDetach() || size() < capacity()) {
782 DataPointer detached(size());
785 detached->copyAppend(d.data(), d.data() + d.size);
787 detached->moveAppend(d.data(), d.data() + d.size);
792 d->clearFlag(Data::CapacityReserved);
798 Q_ASSERT_X(size_t(i) + size_t(n) <= size_t(d->size),
"QList::remove",
"index out of range");
799 Q_ASSERT_X(n >= 0,
"QList::remove",
"invalid count");
805 d->erase(d->begin() + i, n);
826inline T
QList<T>::
value(qsizetype i, parameter_type defaultValue)
const
828 return size_t(i) < size_t(d->size) ? at(i) : defaultValue;
834 d->growAppend(i1.i, i2.i);
840 Q_ASSERT(&other !=
this);
843 if (other.d->needsDetach() || !
std::is_nothrow_move_constructible_v<T>)
844 return append(other);
847 d.detachAndGrow(QArrayData::GrowsAtEnd, other.size(),
nullptr,
nullptr);
848 Q_ASSERT(d.freeSpaceAtEnd() >= other.size());
849 d->moveAppend(other.d->begin(), other.d->end());
853template<
typename... Args>
856 d->emplace(0, std::forward<Args>(args)...);
865 Q_ASSERT_X(size_t(i) <= size_t(d->size),
"QList<T>::insert",
"index out of range");
866 Q_ASSERT_X(n >= 0,
"QList::insert",
"invalid count");
873template <
typename ...Args>
877 Q_ASSERT_X(i >= 0 && i <= d->size,
"QList<T>::insert",
"index out of range");
878 d->emplace(i, std::forward<Args>(args)...);
883template<
typename... Args>
886 d->emplace(d->size, std::forward<Args>(args)...);
893 Q_ASSERT_X(isValidIterator(abegin),
"QList::erase",
"The specified iterator argument 'abegin' is invalid");
894 Q_ASSERT_X(isValidIterator(aend),
"QList::erase",
"The specified iterator argument 'aend' is invalid");
895 Q_ASSERT(aend >= abegin);
897 qsizetype i = std::distance(constBegin(), abegin);
898 qsizetype n = std::distance(abegin, aend);
909 if (d->needsDetach() || newSize > capacity()) {
911 DataPointer detached(d->detachCapacity(newSize));
912 detached->copyAppend(newSize, t);
917 d->assign(d.begin(), d.begin() + qMin(size(), newSize), t);
918 if (newSize > size()) {
919 d->copyAppend(newSize - size(), copy);
920 }
else if (newSize < size()) {
921 d->truncate(newSize);
928template <
typename T,
typename U>
932 from = qMax(from + vector.size(), qsizetype(0));
933 if (from < vector.size()) {
934 auto n = vector.begin() + from - 1;
935 auto e = vector.end();
938 return qsizetype(n - vector.begin());
943template <
typename T,
typename U>
947 from += vector.d->size;
948 else if (from >= vector.size())
949 from = vector.size() - 1;
951 auto b = vector.begin();
952 auto n = vector.begin() + from + 1;
955 return qsizetype(n - b);
963template <
typename AT>
966 return QtPrivate::indexOf(*self(), t, from);
970template <
typename AT>
973 return QtPrivate::lastIndexOf(*self(), t, from);
982 switch (QContainerImplHelper::mid(d.size, &p, &l)) {
983 case QContainerImplHelper::Null:
984 case QContainerImplHelper::Empty:
986 case QContainerImplHelper::Full:
988 case QContainerImplHelper::Subset:
993 DataPointer copied(l);
994 copied->copyAppend(data() + p, data() + p + l);
998Q_DECLARE_SEQUENTIAL_ITERATOR(List)
999Q_DECLARE_MUTABLE_SEQUENTIAL_ITERATOR(List)
1001template <
typename T>
1002size_t qHash(
const QList<T> &key, size_t seed = 0)
1003 noexcept(
noexcept(qHashRange(key.cbegin(), key.cend(), seed)))
1005 return qHashRange(key.cbegin(), key.cend(), seed);
1008template <
typename T,
typename AT>
1011 return QtPrivate::sequential_erase(list, t);
1014template <
typename T,
typename Predicate>
1017 return QtPrivate::sequential_erase_if(list, pred);
1021QList<uint> QStringView::toUcs4()
const {
return QtPrivate::convertToUcs4(*
this); }
1025#include <QtCore/qbytearraylist.h>
1026#include <QtCore/qstringlist.h>
\inmodule QtCore\reentrant
constexpr bool operator==(iterator o) const
constexpr bool operator<(iterator other) const
constexpr bool operator<(const_iterator other) const
const_iterator operator-(qsizetype j) const
constexpr bool operator==(pointer p) const
constexpr bool operator>(const_iterator other) const
const T & operator[](qsizetype j) const
const_iterator & operator-=(qsizetype j)
constexpr const_iterator(iterator o)
constexpr const_iterator()=default
const T & operator*() const
constexpr bool operator!=(const_iterator o) const
const_iterator operator+(qsizetype j) const
constexpr bool operator<=(iterator other) const
const_iterator & operator++()
constexpr bool operator!=(pointer p) const
constexpr bool operator>(iterator other) const
qsizetype operator-(const_iterator j) const
constexpr bool operator==(const_iterator o) const
constexpr bool operator>=(iterator other) const
const_iterator operator--(int)
const_iterator & operator--()
const_iterator operator++(int)
constexpr bool operator!=(iterator o) const
const_iterator & operator+=(qsizetype j)
friend const_iterator operator+(qsizetype j, const_iterator k)
constexpr bool operator<=(const_iterator other) const
const T * operator->() const
constexpr bool operator>=(const_iterator other) const
constexpr bool operator>(iterator other) const
iterator operator+(qsizetype j) const
iterator & operator-=(qsizetype j)
T & operator[](qsizetype j) const
constexpr bool operator<(const_iterator other) const
constexpr bool operator!=(pointer p) const
constexpr bool operator<=(iterator other) const
constexpr bool operator!=(iterator o) const
constexpr bool operator<=(const_iterator other) const
constexpr bool operator>(const_iterator other) const
constexpr bool operator>=(iterator other) const
constexpr bool operator<(iterator other) const
friend iterator operator+(qsizetype j, iterator k)
constexpr bool operator!=(const_iterator o) const
constexpr bool operator==(const_iterator o) const
constexpr bool operator>=(const_iterator other) const
qsizetype operator-(iterator j) const
constexpr iterator()=default
iterator operator-(qsizetype j) const
constexpr bool operator==(iterator o) const
iterator & operator+=(qsizetype j)
constexpr bool operator==(pointer p) const
void append(const_iterator i1, const_iterator i2)
iterator insert(const_iterator before, parameter_type t)
qsizetype size() const noexcept
void removeFirst() noexcept
QList< T > & fill(parameter_type t, qsizetype size=-1)
const_pointer constData() const noexcept
void push_front(rvalue_ref t)
bool isEmpty() const noexcept
const_iterator begin() const noexcept
bool isDetached() const noexcept
void removeAt(qsizetype i)
QList< T > last(qsizetype n) const
bool isSharedWith(const QList< T > &other) const
QList< T > & operator+=(const QList< T > &l)
QList< T > operator+(const QList< T > &l) &&
reference emplaceFront(Args &&... args)
reference emplace_back(Args &&... args)
const T & constLast() const noexcept
iterator erase(const_iterator begin, const_iterator end)
void resizeForOverwrite(qsizetype size)
QList< T > sliced(qsizetype pos, qsizetype n) const
QList(std::initializer_list< T > args)
constexpr qsizetype max_size() const noexcept
QTypeTraits::compare_eq_result_container< QList, U > operator==(const QList &other) const
iterator insert(qsizetype i, parameter_type t)
bool empty() const noexcept
bool removeOne(const AT &t)
QList< T > toList() const noexcept
QList(InputIterator i1, InputIterator i2)
static QList< T > fromReadOnlyData(const T(&t)[N]) noexcept
static QList< T > fromList(const QList< T > &list) noexcept
QList(qsizetype size, parameter_type t)
const_reference back() const noexcept
qsizetype capacity() const
void swapItemsAt(qsizetype i, qsizetype j)
void push_back(parameter_type t)
QList< T > operator+(const QList< T > &l) const &
const_iterator end() const noexcept
iterator erase(const_iterator pos)
bool endsWith(parameter_type t) const
qsizetype count(const AT &t) const noexcept
bool startsWith(parameter_type t) const
friend qsizetype QtPrivate::lastIndexOf(const QList< V > &list, const U &u, qsizetype from) noexcept
QList< T > operator+(QList< T > &&l) &&
qsizetype length() const noexcept
const_reference at(qsizetype i) const noexcept
QList< T > sliced(qsizetype pos) const
QList< T > toVector() const noexcept
T value(qsizetype i) const
void swap(QList &other) noexcept
iterator insert(const_iterator before, qsizetype n, parameter_type t)
QList< T > & operator=(std::initializer_list< T > args)
void move(qsizetype from, qsizetype to)
QList(DataPointer dd) noexcept
const_reverse_iterator crbegin() const noexcept
reference operator[](qsizetype i)
const_iterator constBegin() const noexcept
const_reference operator[](qsizetype i) const noexcept
const_reverse_iterator rbegin() const noexcept
constexpr QList() noexcept=default
void remove(qsizetype i, qsizetype n=1)
qsizetype removeIf(Predicate pred)
qsizetype removeAll(const AT &t)
iterator emplace(qsizetype i, Args &&... args)
const T & first() const noexcept
iterator insert(qsizetype i, qsizetype n, parameter_type t)
void append(QList< T > &&l)
qsizetype count() const noexcept
reference emplaceBack(Args &&... args)
QList< T > mid(qsizetype pos, qsizetype len=-1) const
QTypeTraits::compare_lt_result_container< QList, U > operator>(const QList &other) const noexcept(noexcept(other< std::declval< QList< U > >()))
void prepend(rvalue_ref t)
QList< T > operator+(QList< T > &&l) const &
QList & assign(std::initializer_list< T > l)
void resize(qsizetype size, parameter_type c)
QList< T > first(qsizetype n) const
const T & constFirst() const noexcept
static constexpr qsizetype maxSize()
iterator emplace(const_iterator before, Args &&... args)
void reserve(qsizetype size)
QList & assign(InputIterator first, InputIterator last)
static QList< T > fromVector(const QList< T > &vector) noexcept
void replace(qsizetype i, parameter_type t)
reverse_iterator rbegin()
void pop_front() noexcept
const T & last() const noexcept
void removeLast() noexcept
void resize(qsizetype size)
const_iterator cend() const noexcept
void append(parameter_type t)
QList< T > & operator+=(parameter_type t)
QTypeTraits::compare_eq_result_container< QList, U > operator!=(const QList &other) const
const_iterator constEnd() const noexcept
const_reverse_iterator rend() const noexcept
T value(qsizetype i, parameter_type defaultValue) const
const_iterator cbegin() const noexcept
QList & assign(qsizetype n, parameter_type t)
QTypeTraits::compare_lt_result_container< QList, U > operator>=(const QList &other) const noexcept(noexcept(std::declval< QList< U > >()< other))
const_pointer data() const noexcept
const_reference front() const noexcept
QList< T > & operator+=(QList< T > &&l)
friend qsizetype QtPrivate::indexOf(const QList< V > &list, const U &u, qsizetype from) noexcept
void append(const QList< T > &l)
const_reverse_iterator crend() const noexcept
Combined button and popup list for selecting options.
QString && asString(QString &&s)
qsizetype indexOf(const QList< T > &vector, const U &u, qsizetype from) noexcept
Q_ALWAYS_INLINE QString argToQStringDispatch(QAnyStringView pattern, const Args &...args)
QStringViewArg qStringLikeToArg(const QChar &c) noexcept
const QString & asString(const QString &s)
qsizetype lastIndexOf(const QList< T > &vector, const U &u, qsizetype from) noexcept
qsizetype lastIndexOf(const QList< V > &list, const U &u, qsizetype from) noexcept
QStringViewArg qStringLikeToArg(const QString &s) noexcept
qsizetype indexOf(const QList< V > &list, const U &u, qsizetype from) noexcept
static constexpr qsizetype lengthHelperPointer(const Char *data) noexcept
constexpr QStringViewArg qStringLikeToArg(QStringView s) noexcept
constexpr bool isLatin1(QLatin1StringView s) noexcept
QString operator""_s(const char16_t *str, size_t size) noexcept
QByteArrayView qToByteArrayViewIgnoringNull(const QByteArrayLike &b) noexcept
Q_DECLARE_TYPEINFO(QByteArrayView, Q_PRIMITIVE_TYPE)
Q_CORE_EXPORT Q_DECL_CONST_FUNCTION unsigned int qt_int_sqrt(unsigned int n)
\inmodule QtCore \title Global Qt Declarations
qsizetype erase(QList< T > &list, const AT &t)
QList(InputIterator, InputIterator) -> QList< ValueType >
qsizetype erase_if(QList< T > &list, Predicate pred)
QString operator+(const QString &s1, QChar s2)
QString operator+(QString &&lhs, const QString &rhs)
qsizetype erase_if(QString &s, Predicate pred)
QString operator+(QString &&lhs, QChar rhs)
QString operator+(QChar s1, const QString &s2)
QString operator+(const QString &s1, const QString &s2)
qsizetype erase(QString &s, const T &t)
QList< QList< qInternalCallback > > callbacks
qsizetype indexOf(const AT &t, qsizetype from=0) const noexcept
const Self * self() const
~QListSpecialMethodsBase()=default
bool contains(const AT &t) const noexcept
qsizetype lastIndexOf(const AT &t, qsizetype from=-1) const noexcept
~QListSpecialMethods()=default
constexpr QLatin1StringArg(QLatin1StringView v) noexcept
QLatin1StringArg()=default
constexpr QStringViewArg(QStringView v) noexcept