Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qalgorithms.h File Reference

(9fee7cdfcce00ce6500b8eebf67f4a6c91be98bd)

#include <QtCore/qglobal.h>
#include <QtCore/q20functional.h>
#include <type_traits>
+ Include dependency graph for qalgorithms.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  QAlgorithmsPrivate
 
namespace  QtPrivate
 

Macros

#define QT_POPCOUNT_CONSTEXPR   constexpr
 
#define QT_POPCOUNT_RELAXED_CONSTEXPR   constexpr
 

Functions

template<typename ForwardIterator>
QT_BEGIN_NAMESPACE Q_OUTOFLINE_TEMPLATE void qDeleteAll (ForwardIterator begin, ForwardIterator end)
 
template<typename Container>
void qDeleteAll (const Container &c)
 
Q_DECL_CONST_FUNCTION QT_POPCOUNT_CONSTEXPR uint qPopulationCount (quint32 v) noexcept
 
Q_DECL_CONST_FUNCTION QT_POPCOUNT_CONSTEXPR uint qPopulationCount (quint8 v) noexcept
 
Q_DECL_CONST_FUNCTION QT_POPCOUNT_CONSTEXPR uint qPopulationCount (quint16 v) noexcept
 
Q_DECL_CONST_FUNCTION QT_POPCOUNT_CONSTEXPR uint qPopulationCount (quint64 v) noexcept
 
Q_DECL_CONST_FUNCTION QT_POPCOUNT_CONSTEXPR uint qPopulationCount (long unsigned int v) noexcept
 
constexpr uint QtPrivate::qConstexprCountTrailingZeroBits (quint32 v) noexcept
 
constexpr uint QtPrivate::qConstexprCountTrailingZeroBits (quint64 v) noexcept
 
constexpr uint QtPrivate::qConstexprCountTrailingZeroBits (quint8 v) noexcept
 
constexpr uint QtPrivate::qConstexprCountTrailingZeroBits (quint16 v) noexcept
 
constexpr uint QtPrivate::qConstexprCountTrailingZeroBits (unsigned long v) noexcept
 
constexpr uint qCountTrailingZeroBits (quint32 v) noexcept
 
constexpr uint qCountTrailingZeroBits (quint8 v) noexcept
 
constexpr uint qCountTrailingZeroBits (quint16 v) noexcept
 
constexpr uint qCountTrailingZeroBits (quint64 v) noexcept
 
constexpr uint qCountTrailingZeroBits (unsigned long v) noexcept
 
QT_POPCOUNT_RELAXED_CONSTEXPR uint qCountLeadingZeroBits (quint32 v) noexcept
 
QT_POPCOUNT_RELAXED_CONSTEXPR uint qCountLeadingZeroBits (quint8 v) noexcept
 
QT_POPCOUNT_RELAXED_CONSTEXPR uint qCountLeadingZeroBits (quint16 v) noexcept
 
QT_POPCOUNT_RELAXED_CONSTEXPR uint qCountLeadingZeroBits (quint64 v) noexcept
 
QT_POPCOUNT_RELAXED_CONSTEXPR uint qCountLeadingZeroBits (unsigned long v) noexcept
 
template<typename InputIterator, typename Result, typename Separator = Result, typename Projection = q20::identity>
Result qJoin (InputIterator first, InputIterator last, Result init, const Separator &separator={}, Projection p={})
 
template<typename T>
constexpr std::enable_if_t< std::conjunction_v< std::is_integral< T >, std::is_unsigned< T > >, int > QtPrivate::log2i (T x)
 

Macro Definition Documentation

◆ QT_POPCOUNT_CONSTEXPR

#define QT_POPCOUNT_CONSTEXPR   constexpr

Definition at line 197 of file qalgorithms.h.

◆ QT_POPCOUNT_RELAXED_CONSTEXPR

#define QT_POPCOUNT_RELAXED_CONSTEXPR   constexpr

Definition at line 198 of file qalgorithms.h.

Function Documentation

◆ qCountLeadingZeroBits() [1/5]

QT_POPCOUNT_RELAXED_CONSTEXPR uint qCountLeadingZeroBits ( quint16 v)
inlinenoexcept

Definition at line 401 of file qalgorithms.h.

◆ qCountLeadingZeroBits() [2/5]

QT_POPCOUNT_RELAXED_CONSTEXPR uint qCountLeadingZeroBits ( quint32 v)
inlinenoexcept

Definition at line 370 of file qalgorithms.h.

◆ qCountLeadingZeroBits() [3/5]

QT_POPCOUNT_RELAXED_CONSTEXPR uint qCountLeadingZeroBits ( quint64 v)
inlinenoexcept

Definition at line 416 of file qalgorithms.h.

◆ qCountLeadingZeroBits() [4/5]

QT_POPCOUNT_RELAXED_CONSTEXPR uint qCountLeadingZeroBits ( quint8 v)
inlinenoexcept

Definition at line 387 of file qalgorithms.h.

◆ qCountLeadingZeroBits() [5/5]

QT_POPCOUNT_RELAXED_CONSTEXPR uint qCountLeadingZeroBits ( unsigned long v)
inlinenoexcept

Definition at line 433 of file qalgorithms.h.

◆ qCountTrailingZeroBits() [1/5]

uint qCountTrailingZeroBits ( quint16 v)
inlineconstexprnoexcept

Definition at line 343 of file qalgorithms.h.

◆ qCountTrailingZeroBits() [2/5]

uint qCountTrailingZeroBits ( quint32 v)
inlineconstexprnoexcept

Definition at line 321 of file qalgorithms.h.

◆ qCountTrailingZeroBits() [3/5]

uint qCountTrailingZeroBits ( quint64 v)
inlineconstexprnoexcept

Definition at line 354 of file qalgorithms.h.

◆ qCountTrailingZeroBits() [4/5]

uint qCountTrailingZeroBits ( quint8 v)
inlineconstexprnoexcept

Definition at line 332 of file qalgorithms.h.

◆ qCountTrailingZeroBits() [5/5]

uint qCountTrailingZeroBits ( unsigned long v)
inlineconstexprnoexcept

Definition at line 365 of file qalgorithms.h.

◆ qDeleteAll() [1/2]

template<typename Container>
void qDeleteAll ( const Container & c)
inline

Definition at line 35 of file qalgorithms.h.

◆ qDeleteAll() [2/2]

template<typename ForwardIterator>
QT_BEGIN_NAMESPACE Q_OUTOFLINE_TEMPLATE void qDeleteAll ( ForwardIterator begin,
ForwardIterator end )

Definition at line 26 of file qalgorithms.h.

◆ qJoin()

template<typename InputIterator, typename Result, typename Separator = Result, typename Projection = q20::identity>
Result qJoin ( InputIterator first,
InputIterator last,
Result init,
const Separator & separator = {},
Projection p = {} )

Definition at line 442 of file qalgorithms.h.

◆ qPopulationCount() [1/5]

Q_DECL_CONST_FUNCTION QT_POPCOUNT_CONSTEXPR uint qPopulationCount ( long unsigned int v)
inlinenoexcept

Definition at line 260 of file qalgorithms.h.

◆ qPopulationCount() [2/5]

Q_DECL_CONST_FUNCTION QT_POPCOUNT_CONSTEXPR uint qPopulationCount ( quint16 v)
inlinenoexcept

Definition at line 230 of file qalgorithms.h.

◆ qPopulationCount() [3/5]

Q_DECL_CONST_FUNCTION QT_POPCOUNT_CONSTEXPR uint qPopulationCount ( quint32 v)
inlinenoexcept

Definition at line 203 of file qalgorithms.h.

◆ qPopulationCount() [4/5]

Q_DECL_CONST_FUNCTION QT_POPCOUNT_CONSTEXPR uint qPopulationCount ( quint64 v)
inlinenoexcept

Definition at line 243 of file qalgorithms.h.

◆ qPopulationCount() [5/5]

Q_DECL_CONST_FUNCTION QT_POPCOUNT_CONSTEXPR uint qPopulationCount ( quint8 v)
inlinenoexcept

Definition at line 218 of file qalgorithms.h.