6#include <QtCore/qglobal.h>
9#include <QtCore/q20functional.h>
31#ifdef __cpp_lib_constexpr_algorithms
37using std::is_sorted_until;
41template <
typename InputIterator,
typename OutputIterator>
42constexpr OutputIterator
43copy(InputIterator
first, InputIterator last, OutputIterator dest)
45 while (
first != last) {
53template <
typename InputIterator,
typename OutputIterator,
typename UnaryPredicate>
54constexpr OutputIterator
55copy_if(InputIterator
first, InputIterator last, OutputIterator dest, UnaryPredicate pred)
57 while (
first != last) {
67template <
typename InputIterator,
typename Size,
typename OutputIterator>
68constexpr OutputIterator
80template <
typename ForwardIterator,
typename Value>
84 while (
first != last) {
90template <
typename OutputIterator,
typename Size,
typename Value>
91constexpr OutputIterator
102template <
typename ForwardIterator,
typename BinaryPredicate = std::less<>>
103constexpr ForwardIterator
109 while (++
first != last) {
117template <
typename ForwardIterator,
typename BinaryPredicate = std::less<>>
118constexpr bool is_sorted(ForwardIterator
first, ForwardIterator last, BinaryPredicate
p = {})
123template <
typename InputIterator,
typename OutputIterator,
typename UnaryFunction>
124constexpr OutputIterator
125transform(InputIterator
first, InputIterator last, OutputIterator dest, UnaryFunction op)
127 while (
first != last) {
142#ifdef __cpp_lib_ranges
143using std::ranges::any_of;
144using std::ranges::all_of;
145using std::ranges::none_of;
147[[maybe_unused]]
inline constexpr struct {
148 template <
typename InputIterator,
typename Sentinel,
150 constexpr bool operator()(InputIterator
first, Sentinel last, Predicate pred, Projection proj = {})
const
152 while (
first != last) {
153 if (std::invoke(pred, std::invoke(proj, *
first)))
160[[maybe_unused]]
inline constexpr struct {
161 template <
typename InputIterator,
typename Sentinel,
163 constexpr bool operator()(InputIterator
first, Sentinel last, Predicate pred, Projection proj = {})
const
165 while (
first != last) {
166 if (!std::invoke(pred, std::invoke(proj, *
first)))
173[[maybe_unused]]
inline constexpr struct {
174 template <
typename InputIterator,
typename Sentinel,
176 constexpr bool operator()(InputIterator
first, Sentinel last, Predicate pred, Projection proj = {})
const
178 while (
first != last) {
179 if (std::invoke(pred, std::invoke(proj, *
first)))
Combined button and popup list for selecting options.
constexpr struct q20::ranges::@4 any_of
constexpr struct q20::ranges::@6 none_of
constexpr struct q20::ranges::@5 all_of
constexpr void fill(ForwardIterator first, ForwardIterator last, const Value &value)
constexpr bool is_sorted(ForwardIterator first, ForwardIterator last, BinaryPredicate p={})
constexpr OutputIterator copy_if(InputIterator first, InputIterator last, OutputIterator dest, UnaryPredicate pred)
constexpr OutputIterator copy(InputIterator first, InputIterator last, OutputIterator dest)
constexpr ForwardIterator is_sorted_until(ForwardIterator first, ForwardIterator last, BinaryPredicate p={})
constexpr OutputIterator fill_n(OutputIterator first, Size n, const Value &value)
constexpr OutputIterator copy_n(InputIterator first, Size n, OutputIterator dest)
EGLOutputLayerEXT EGLint EGLAttrib value
[5]
GLuint GLenum GLenum transform