4#ifndef QGLIST_HELPER_P_H
5#define QGLIST_HELPER_P_H
18#include <QtCore/qtconfigmacros.h>
27template <
typename ListType>
35 return reinterpret_cast<const ListType *
>(&
element->data);
47 for (
int i = 0;
i !=
n; ++
i)
65template <
typename ListType>
68 static_assert(std::is_pointer_v<ListType>);
72 auto begin() {
return GListIterator<ListType>(
head); }
73 auto end() {
return GListIterator<ListType>(
nullptr); }
Combined button and popup list for selecting options.
const ListType & operator*() const noexcept
const ListType * operator->() const noexcept
GListIterator & operator++() noexcept
std::ptrdiff_t difference_type
GListIterator operator++(int n) noexcept
std::input_iterator_tag iterator_category
GListIterator(const GList *element=nullptr)
bool operator!=(const GListIterator &r) const noexcept
bool operator==(const GListIterator &r) const noexcept
GListRangeAdaptor(const GList *list)