6#include <QtCore/qglobal.h>
9#include <QtCore/q20functional.h>
31#ifdef __cpp_lib_constexpr_algorithms
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
69copy_n(InputIterator first, Size n, OutputIterator dest)
80template <
typename ForwardIterator,
typename Value>
82fill(ForwardIterator first, ForwardIterator last,
const Value &value)
84 while (first != last) {
90template <
typename OutputIterator,
typename Size,
typename Value>
91constexpr OutputIterator
92fill_n(OutputIterator first, Size n,
const Value &value)
102template <
typename ForwardIterator,
typename BinaryPredicate =
std::
less<>>
103constexpr ForwardIterator
109 while (++first != last) {
110 if (p(*first, *prev))
117template <
typename ForwardIterator,
typename BinaryPredicate =
std::
less<>>
118constexpr bool is_sorted(ForwardIterator first, ForwardIterator last, BinaryPredicate p = {})
120 return q20::is_sorted_until(first, last, p) == last;
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
148 template <
typename InputIterator,
typename Sentinel,
149 typename Predicate,
typename Projection = q20::identity>
150 [[maybe_unused]]
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)))
161 template <
typename InputIterator,
typename Sentinel,
162 typename Predicate,
typename Projection = q20::identity>
163 [[maybe_unused]]
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)))
174 template <
typename InputIterator,
typename Sentinel,
175 typename Predicate,
typename Projection = q20::identity>
176 [[maybe_unused]]
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)))
bool unload(UnloadFlag flag=UnloadSys)
QtPluginInstanceFunction loadPlugin()
void setLoadHints(QLibrary::LoadHints lh)
QFunctionPointer resolve(const char *)
QObject * pluginInstance()
static void releaseLibrary(QLibraryPrivate *lib)
static QLibraryPrivate * findOrCreate(const QString &fileName, const QString &version, QLibrary::LoadHints loadHints)
\inmodule QtCore \reentrant
constexpr void fill(ForwardIterator first, ForwardIterator last, const Value &value)
constexpr OutputIterator transform(InputIterator first, InputIterator last, OutputIterator dest, UnaryFunction op)
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)
Q_TRACE_POINT(qtcore, QLibraryPrivate_load_exit, bool success)
static void installCoverageTool(QLibraryPrivate *libPrivate)
static constexpr bool PluginMustMatchQtDebug
bool qt_debug_component()
Q_TRACE_POINT(qtcore, QLibraryPrivate_load_entry, const QString &fileName)
static bool qt_get_metadata(QLibraryPrivate *priv, QString *errMsg)
static Q_CONSTINIT bool qt_library_data_once
static QLibraryScanResult findPatternUnloaded(const QString &library, QLibraryPrivate *lib)
static constexpr bool QtBuildIsDebug
static void qlibraryCleanup()
QT_REQUIRE_CONFIG(library)