7#include <QtCore/qglobal.h>
10#include <QtCore/q20functional.h>
32#ifdef __cpp_lib_constexpr_algorithms
42template <
typename InputIterator,
typename OutputIterator>
43constexpr OutputIterator
44copy(InputIterator first, InputIterator last, OutputIterator dest)
46 while (first != last) {
54template <
typename InputIterator,
typename OutputIterator,
typename UnaryPredicate>
55constexpr OutputIterator
56copy_if(InputIterator first, InputIterator last, OutputIterator dest, UnaryPredicate pred)
58 while (first != last) {
68template <
typename InputIterator,
typename Size,
typename OutputIterator>
69constexpr OutputIterator
70copy_n(InputIterator first, Size n, OutputIterator dest)
81template <
typename ForwardIterator,
typename Value>
83fill(ForwardIterator first, ForwardIterator last,
const Value &value)
85 while (first != last) {
91template <
typename OutputIterator,
typename Size,
typename Value>
92constexpr OutputIterator
93fill_n(OutputIterator first, Size n,
const Value &value)
103template <
typename ForwardIterator,
typename BinaryPredicate =
std::
less<>>
104constexpr ForwardIterator
110 while (++first != last) {
111 if (p(*first, *prev))
118template <
typename ForwardIterator,
typename BinaryPredicate =
std::
less<>>
119constexpr bool is_sorted(ForwardIterator first, ForwardIterator last, BinaryPredicate p = {})
121 return q20::is_sorted_until(first, last, p) == last;
124template <
typename InputIterator,
typename OutputIterator,
typename UnaryFunction>
125constexpr OutputIterator
126transform(InputIterator first, InputIterator last, OutputIterator dest, UnaryFunction op)
128 while (first != last) {
143#ifdef __cpp_lib_ranges
149 template <
typename InputIterator,
typename Sentinel,
150 typename Predicate,
typename Projection = q20::identity>
151 [[maybe_unused]]
constexpr bool operator()(InputIterator first, Sentinel last, Predicate pred, Projection proj = {})
const
153 while (first != last) {
154 if (std::invoke(pred, std::invoke(proj, *first)))
162 template <
typename InputIterator,
typename Sentinel,
163 typename Predicate,
typename Projection = q20::identity>
164 [[maybe_unused]]
constexpr bool operator()(InputIterator first, Sentinel last, Predicate pred, Projection proj = {})
const
166 while (first != last) {
167 if (!std::invoke(pred, std::invoke(proj, *first)))
175 template <
typename InputIterator,
typename Sentinel,
176 typename Predicate,
typename Projection = q20::identity>
177 [[maybe_unused]]
constexpr bool operator()(InputIterator first, Sentinel last, Predicate pred, Projection proj = {})
const
179 while (first != last) {
180 if (std::invoke(pred, std::invoke(proj, *first)))
Q_AUTOTEST_EXPORT 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)