9#include <QtCore/qarraydatapointer.h>
10#include <QtCore/qcompare.h>
11#include <QtCore/qnamespace.h>
12#include <QtCore/qhashfunctions.h>
13#include <QtCore/qiterator.h>
14#include <QtCore/qcontainertools_impl.h>
15#include <QtCore/qnamespace.h>
16#include <QtCore/qscopeguard.h>
17#include <QtCore/qttypetraits.h>
21#include <initializer_list>
29 template <
typename V,
typename U>
qsizetype indexOf(
const QList<V> &list,
const U &u, qsizetype from)
noexcept;
30 template <
typename V,
typename U>
qsizetype lastIndexOf(
const QList<V> &list,
const U &u, qsizetype from)
noexcept;
40 Self *
self() {
return static_cast<Self *>(
this); }
41 const Self *
self()
const {
return static_cast<
const Self *>(
this); }
44 template <
typename AT = T>
46 template <
typename AT = T>
49 template <
typename AT = T>
52 return self()->indexOf(t) != -1;
66template <>
struct QListSpecialMethods<QByteArray>;
67template <>
struct QListSpecialMethods<QString>;
69#if !defined(QT_STRICT_QLIST_ITERATORS) && (QT_VERSION >= QT_VERSION_CHECK(6
, 6
, 0
)) && !defined(Q_OS_WIN)
70#define QT_STRICT_QLIST_ITERATORS
74template<
typename T>
class QVector :
public QList<T> {};
86 class DisableRValueRefs {};
88 friend class ::tst_QList;
98 template <
typename InputIterator>
explicit
99 QList(InputIterator i1, InputIterator i2,
std::input_iterator_tag)
101 std::copy(i1, i2,
std::back_inserter(*
this));
104 template <
typename ForwardIterator>
explicit
105 QList(ForwardIterator i1, ForwardIterator i2,
std::forward_iterator_tag)
106 : d(std::distance(i1, i2))
111 Q_CHECK_PTR(d.data());
112 if constexpr (std::is_same_v<std::decay_t<ForwardIterator>, iterator> ||
113 std::is_same_v<std::decay_t<ForwardIterator>, const_iterator>) {
114 d->copyAppend(i1.i, i2.i);
116 d->appendIteratorRange(i1, i2);
145 friend class QList<T>;
148#ifdef QT_STRICT_QLIST_ITERATORS
155#ifdef QT_COMPILER_HAS_LWG3346
164#ifndef QT_STRICT_QLIST_ITERATORS
165 inline constexpr explicit iterator(T *n) : i(n) {}
169 inline T &
operator[](qsizetype j)
const {
return *(i + j); }
170#ifdef __cpp_lib_three_way_comparison
194#if QT_DEPRECATED_SINCE(6
, 3
) && !defined(QT_STRICT_QLIST_ITERATORS)
196 "the implicit conversion between a QList/QVector::iterator "
220 friend class QList<T>;
222 const T *i =
nullptr;
223#ifdef QT_STRICT_QLIST_ITERATORS
230#ifdef QT_COMPILER_HAS_LWG3346
239#ifndef QT_STRICT_QLIST_ITERATORS
240 inline constexpr explicit const_iterator(
const T *n) : i(n) {}
245 inline const T &
operator[](qsizetype j)
const {
return *(i + j); }
246#ifdef __cpp_lib_three_way_comparison
274#if QT_DEPRECATED_SINCE(6
, 3
) && !defined(QT_STRICT_QLIST_ITERATORS)
276 "the implicit conversion between a QList/QVector::const_iterator "
278 inline operator const T*()
const {
return i; }
304 void resize_internal(qsizetype i);
307 const std::less<
const T*> less = {};
308 return !less(d.end(), i.i) && !less(i.i, d.begin());
311 void verify([[maybe_unused]] qsizetype pos = 0, [[maybe_unused]] qsizetype n = 1)
const
314 Q_ASSERT(pos <= size());
316 Q_ASSERT(n <= size() - pos);
325 constexpr QList()
noexcept =
default;
330 Q_CHECK_PTR(d.data());
331 d.appendInitialize(size);
334 QList(qsizetype size, parameter_type t)
338 Q_CHECK_PTR(d.data());
339 d->copyAppend(size, t);
347 Q_CHECK_PTR(d.data());
348 d->copyAppend(args.begin(), args.end());
357 template <
typename InputIterator, if_input_iterator<InputIterator> =
true>
358 QList(InputIterator i1, InputIterator i2)
359 :
QList(i1, i2,
typename std::iterator_traits<InputIterator>::iterator_category{})
365 inline explicit QList(
const String &str)
372 Q_CHECK_PTR(d.data());
373 d->appendUninitialized(size);
383 template <
typename U = T,
384 Qt::if_has_qt_compare_three_way<U, U> =
true>
387 return QtOrderingPrivate::lexicographicalCompareThreeWay(lhs.begin(), lhs.end(),
388 rhs.begin(), rhs.end());
391#if defined(__cpp_lib_three_way_comparison) && defined(__cpp_lib_concepts)
392 template <
typename U =
T,
403 template <
typename U = T>
406 if (size() != other.size())
408 if (begin() == other.begin())
412 return std::equal(begin(), end(), other.begin(), other.end());
415 template <
typename U = T>
418 return !(*
this == other);
421#ifndef __cpp_lib_three_way_comparison
422 template <
typename U = T>
423 QTypeTraits::compare_lt_result_container<QList, U> operator<(
const QList &other)
const
424 noexcept(
noexcept(std::lexicographical_compare<
typename QList<U>::const_iterator,
425 typename QList::const_iterator>(
426 std::declval<QList<U>>().begin(), std::declval<QList<U>>().end(),
427 other.begin(), other.end())))
429 return std::lexicographical_compare(begin(), end(),
430 other.begin(), other.end());
433 template <
typename U = T>
437 return other < *
this;
440 template <
typename U = T>
441 QTypeTraits::compare_lt_result_container<QList, U> operator<=(
const QList &other)
const
442 noexcept(
noexcept(other < std::declval<QList<U>>()))
444 return !(other < *
this);
447 template <
typename U = T>
451 return !(*
this < other);
467 constexpr size_t MaxSize = maxSize();
468 Q_PRESUME(size_t(d.size) <= MaxSize);
474 constexpr bool isEmpty()
const noexcept {
return size() == 0; }
478 resize_internal(size);
479 if (size >
this->size())
480 d.appendInitialize(size);
482 void resize(qsizetype size, parameter_type c)
484 resize_internal(size);
485 if (size >
this->size())
486 d->copyAppend(size -
this->size(), c);
490 resize_internal(size);
491 if (size >
this->size())
492 d->appendUninitialized(size);
510 if (d.needsDetach()) {
512 DataPointer detached(d.allocatedCapacity());
521 Q_ASSERT_X(size_t(i) < size_t(d.size),
"QList::at",
"index out of range");
526 Q_ASSERT_X(size_t(i) < size_t(d.size),
"QList::operator[]",
"index out of range");
531 void append(parameter_type t) { emplaceBack(t); }
535 if constexpr (DataPointer::pass_parameter_by_value) {
538 emplaceBack(
std::move(t));
547 if constexpr (DataPointer::pass_parameter_by_value) {
550 emplaceFront(
std::move(t));
553 void prepend(parameter_type t) { emplaceFront(t); }
555 template<
typename... Args>
558 template <
typename ...Args>
562 {
return emplace(i, t); }
566 Q_ASSERT_X(isValidIterator(before),
"QList::insert",
"The specified iterator argument 'before' is invalid");
567 return insert(before, 1, t);
571 Q_ASSERT_X(isValidIterator(before),
"QList::insert",
"The specified iterator argument 'before' is invalid");
572 return insert(std::distance(constBegin(), before), n, t);
576 Q_ASSERT_X(isValidIterator(before),
"QList::insert",
"The specified iterator argument 'before' is invalid");
577 return insert(std::distance(constBegin(), before), std::move(t));
580 if constexpr (DataPointer::pass_parameter_by_value) {
585 return emplace(i,
std::move(t));
595 template <
typename InputIterator, if_input_iterator<InputIterator> =
true>
597 { d->assign(first, last);
return *
this; }
602 return assign(l.begin(), l.end());
607 template <
typename ...Args>
610 Q_ASSERT_X(isValidIterator(before),
"QList::emplace",
"The specified iterator argument 'before' is invalid");
614 template <
typename ...Args>
623 Q_ASSERT_X(i >= 0 && i < d.size,
"QList<T>::replace",
"index out of range");
630 if constexpr (DataPointer::pass_parameter_by_value) {
634 Q_ASSERT_X(i >= 0 && i < d.size,
"QList<T>::replace",
"index out of range");
637 d.data()[i] = std::move(t);
641 void remove(qsizetype i, qsizetype n = 1);
646 Q_ASSERT(!isEmpty());
647 const auto eraser = qScopeGuard([&] { d->eraseFirst(); });
648 return std::move(first());
652 Q_ASSERT(!isEmpty());
653 const auto eraser = qScopeGuard([&] { d->eraseLast(); });
654 return std::move(last());
664 template <
typename AT>
666 template <
typename AT>
668 template <
typename AT>
672 template <
typename AT = T>
675 return qsizetype(std::count(data(), data() + size(), t));
679 template <
typename AT = T>
682 return QtPrivate::sequential_erase_with_copy(*
this, t);
685 template <
typename AT = T>
688 return QtPrivate::sequential_erase_one(*
this, t);
691 template <
typename Predicate>
694 return QtPrivate::sequential_erase_if(*
this, pred);
700 const auto remover = qScopeGuard([&] { remove(i); });
704 void move(qsizetype from, qsizetype to)
706 Q_ASSERT_X(from >= 0 && from < size(),
"QList::move(qsizetype, qsizetype)",
"'from' is out-of-range");
707 Q_ASSERT_X(to >= 0 && to < size(),
"QList::move(qsizetype, qsizetype)",
"'to' is out-of-range");
711 T *
const b = d.begin();
713 std::rotate(b + from, b + from + 1, b + to + 1);
715 std::rotate(b + to, b + from, b + from + 1);
739 inline T&
first() { Q_ASSERT(!isEmpty());
return *begin(); }
740 inline const T &
first()
const noexcept { Q_ASSERT(!isEmpty());
return *begin(); }
741 inline const T &
constFirst()
const noexcept { Q_ASSERT(!isEmpty());
return *begin(); }
742 inline T&
last() { Q_ASSERT(!isEmpty());
return *(end()-1); }
743 inline const T &
last()
const noexcept { Q_ASSERT(!isEmpty());
return *(end()-1); }
744 inline const T &
constLast()
const noexcept { Q_ASSERT(!isEmpty());
return *(end()-1); }
745 inline bool startsWith(parameter_type t)
const {
return !isEmpty() && first() == t; }
746 inline bool endsWith(parameter_type t)
const {
return !isEmpty() && last() == t; }
747 QList<T>
mid(qsizetype pos, qsizetype len = -1)
const;
750 { verify(0, n);
return QList<T>(begin(), begin() + n); }
752 { verify(0, n);
return QList<T>(end() - n, end()); }
754 { verify(pos, 0);
return QList<T>(begin() + pos, end()); }
756 { verify(pos, n);
return QList<T>(begin() + pos, begin() + pos + n); }
758 T
value(qsizetype i)
const {
return value(i, T()); }
759 T
value(qsizetype i, parameter_type defaultValue)
const;
762 Q_ASSERT_X(i >= 0 && i < size() && j >= 0 && j < size(),
763 "QList<T>::swap",
"index out of range");
765 qSwap(d.begin()[i], d.begin()[j]);
776 template <
typename ...Args>
780 {
return d.size == 0; }
795 {
QList n = *
this; n += l;
return n; }
797 {
return std::move(*
this += l); }
799 {
QList n = *
this; n +=
std::move(l);
return n; }
801 {
return std::move(*
this +=
std::move(l)); }
803 { append(t);
return *
this; }
804 inline QList<T> &operator<< (parameter_type t)
805 { append(t);
return *
this; }
806 inline QList<T> &operator<<(
const QList<T> &l)
807 { *
this += l;
return *
this; }
809 { *
this +=
std::move(l);
return *
this; }
811 { append(
std::move(t));
return *
this; }
812 inline QList<T> &operator<<(rvalue_ref t)
813 { append(
std::move(t));
return *
this; }
822 template<qsizetype N>
825 return QList<T>({
nullptr,
const_cast<T *>(t), N });
829template <
typename InputIterator,
830 typename ValueType =
typename std::iterator_traits<InputIterator>::value_type,
831 QtPrivate::IfIsInputIterator<InputIterator> =
true>
835inline void QList<T>::resize_internal(qsizetype newSize)
837 Q_ASSERT(newSize >= 0);
839 if (d.needsDetach() || newSize > capacity() - d.freeSpaceAtBegin()) {
840 d.detachAndGrow(QArrayData::GrowsAtEnd, newSize - d.size,
nullptr,
nullptr);
841 }
else if (newSize < size()) {
842 d->truncate(newSize);
850 if (asize <= capacity() - d.freeSpaceAtBegin()) {
851 if (d.flags() & Data::CapacityReserved)
855 d.setFlag(Data::CapacityReserved);
860 qsizetype newSize = qMax(asize, size());
861 DataPointer detached(newSize);
863 Q_CHECK_PTR(detached.data());
864 detached->copyAppend(d.begin(), d.end());
865 if (detached.d_ptr())
866 detached.setFlag(Data::CapacityReserved);
875 if (d.needsDetach() || size() < capacity()) {
877 DataPointer detached(size());
879 Q_CHECK_PTR(detached.data());
881 detached->copyAppend(d.data(), d.data() + d.size);
883 detached->moveAppend(d.data(), d.data() + d.size);
888 d.clearFlag(Data::CapacityReserved);
894 Q_ASSERT_X(size_t(i) + size_t(n) <= size_t(d.size),
"QList::remove",
"index out of range");
895 Q_ASSERT_X(n >= 0,
"QList::remove",
"invalid count");
901 d->erase(d.begin() + i, n);
907 Q_ASSERT(!isEmpty());
915 Q_ASSERT(!isEmpty());
922inline T
QList<T>::
value(qsizetype i, parameter_type defaultValue)
const
924 return size_t(i) < size_t(d.size) ? at(i) : defaultValue;
930 d->growAppend(i1.i, i2.i);
936 Q_ASSERT(&other !=
this);
939 if (other.d.needsDetach() || !
std::is_nothrow_move_constructible_v<T>)
940 return append(other);
943 d.detachAndGrow(QArrayData::GrowsAtEnd, other.size(),
nullptr,
nullptr);
944 Q_ASSERT(d.freeSpaceAtEnd() >= other.size());
945 d->moveAppend(other.d.begin(), other.d.end());
949template<
typename... Args>
952 d->emplace(0, std::forward<Args>(args)...);
961 Q_ASSERT_X(size_t(i) <= size_t(d.size),
"QList<T>::insert",
"index out of range");
962 Q_ASSERT_X(n >= 0,
"QList::insert",
"invalid count");
969template <
typename ...Args>
973 Q_ASSERT_X(i >= 0 && i <= d.size,
"QList<T>::insert",
"index out of range");
974 d->emplace(i, std::forward<Args>(args)...);
979template<
typename... Args>
982 d->emplace(d.size, std::forward<Args>(args)...);
989 Q_ASSERT_X(isValidIterator(abegin),
"QList::erase",
"The specified iterator argument 'abegin' is invalid");
990 Q_ASSERT_X(isValidIterator(aend),
"QList::erase",
"The specified iterator argument 'aend' is invalid");
991 Q_ASSERT(aend >= abegin);
994 qsizetype n =
std::distance(abegin, aend);
1000template <
typename T>
1005 if (d.needsDetach() || newSize > capacity()) {
1007 DataPointer detached(d.detachCapacity(newSize));
1008 detached->copyAppend(newSize, t);
1013 d->assign(d.begin(), d.begin() + qMin(size(), newSize), t);
1014 if (newSize > size()) {
1015 d->copyAppend(newSize - size(), copy);
1016 }
else if (newSize < size()) {
1017 d->truncate(newSize);
1024template <
typename T,
typename U>
1028 from = qMax(from + vector.size(), qsizetype(0));
1029 if (from < vector.size()) {
1030 auto n = vector.begin() + from - 1;
1031 auto e = vector.end();
1034 return qsizetype(n - vector.begin());
1039template <
typename T,
typename U>
1043 from += vector.d.size;
1044 else if (from >= vector.size())
1045 from = vector.size() - 1;
1047 auto b = vector.begin();
1048 auto n = vector.begin() + from + 1;
1051 return qsizetype(n - b);
1058template <
typename T>
1059template <
typename AT>
1062 return QtPrivate::indexOf(*self(), t, from);
1065template <
typename T>
1066template <
typename AT>
1069 return QtPrivate::lastIndexOf(*self(), t, from);
1072template <
typename T>
1078 switch (QContainerImplHelper::mid(d.size, &p, &l)) {
1079 case QContainerImplHelper::Null:
1080 case QContainerImplHelper::Empty:
1082 case QContainerImplHelper::Full:
1084 case QContainerImplHelper::Subset:
1089 DataPointer copied(l);
1090 copied->copyAppend(data() + p, data() + p + l);
1094Q_DECLARE_SEQUENTIAL_ITERATOR(List)
1095Q_DECLARE_MUTABLE_SEQUENTIAL_ITERATOR(List)
1097template <
typename T>
1098size_t qHash(
const QList<T> &key, size_t seed = 0)
1099 noexcept(
noexcept(qHashRange(key.cbegin(), key.cend(), seed)))
1101 return qHashRange(key.cbegin(), key.cend(), seed);
1104template <
typename T,
typename AT>
1107 return QtPrivate::sequential_erase(list, t);
1110template <
typename T,
typename Predicate>
1113 return QtPrivate::sequential_erase_if(list, pred);
1117QList<uint> QStringView::toUcs4()
const {
return QtPrivate::convertToUcs4(*
this); }
1121#include <QtCore/qbytearraylist.h>
1122#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
std::random_access_iterator_tag iterator_category
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 value_type element_type
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)
std::random_access_iterator_tag iterator_category
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)
void removeFirst() noexcept
QList< T > & fill(parameter_type t, qsizetype size=-1)
const_pointer constData() const noexcept
void push_front(rvalue_ref t)
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) &&
std::reverse_iterator< iterator > reverse_iterator
const_reference at(qsizetype i) const noexcept
constexpr qsizetype size() 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)
const DataPointer & data_ptr() const &
qsizetype removeIf(Predicate pred)
DataPointer & data_ptr() &
std::reverse_iterator< const_iterator > const_reverse_iterator
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)
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
constexpr bool isEmpty() const noexcept
const T & const_reference
const T & last() const noexcept
constexpr qsizetype count() const noexcept
void removeLast() noexcept
void resize(qsizetype size)
friend auto compareThreeWay(const QList &lhs, const QList &rhs)
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
constexpr qsizetype length() 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
DataPointer && data_ptr() &&
void append(const QList< T > &l)
const_iterator ConstIterator
const_reverse_iterator crend() const noexcept
\macro QT_RESTRICTED_CAST_FROM_ASCII
Combined button and popup list for selecting options.
QString && asString(QString &&s)
constexpr QAnyStringArg qStringLikeToArg(QAnyStringView s) noexcept
qsizetype indexOf(const QList< T > &vector, const U &u, qsizetype from) 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
constexpr qsizetype lengthHelperPointer(const Char *data) noexcept
qsizetype indexOf(const QList< V > &list, const U &u, qsizetype from) noexcept
std::is_same< Char, char32_t > IsCompatibleChar32TypeHelper
constexpr bool isLatin1(QLatin1StringView s) noexcept
QByteArrayView qToByteArrayViewIgnoringNull(const QByteArrayLike &b) noexcept
Q_DECLARE_TYPEINFO(QByteArrayView, Q_PRIMITIVE_TYPE)
Q_LOGGING_CATEGORY(lcEventDispatcher, "qt.eventdispatcher")
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)
#define QT_UNICODE_LITERAL(str)
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
bool contains(const AT &t) const noexcept
QListSpecialMethodsBase()=default
qsizetype lastIndexOf(const AT &t, qsizetype from=-1) const noexcept
QListSpecialMethods()=default
constexpr QAnyStringArg(QAnyStringView v) noexcept
constexpr QLatin1StringArg(QLatin1StringView v) noexcept
QLatin1StringArg()=default
constexpr QStringViewArg(QStringView v) noexcept