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

(7eff6ace6143e5bb44fa28c2fb98969bd5483c57)

#include <QtCore/qglobal.h>
#include <QtCore/q20bit.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  QtPrivate

Macros

#define QT_HAS_CONSTEXPR_BITOPS

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 constexpr uint qPopulationCount (quint32 v) noexcept
Q_DECL_CONST_FUNCTION constexpr uint qPopulationCount (quint8 v) noexcept
Q_DECL_CONST_FUNCTION constexpr uint qPopulationCount (quint16 v) noexcept
Q_DECL_CONST_FUNCTION constexpr uint qPopulationCount (quint64 v) noexcept
Q_DECL_CONST_FUNCTION constexpr uint qPopulationCount (long unsigned int 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
constexpr uint qCountLeadingZeroBits (quint32 v) noexcept
constexpr uint qCountLeadingZeroBits (quint8 v) noexcept
constexpr uint qCountLeadingZeroBits (quint16 v) noexcept
constexpr uint qCountLeadingZeroBits (quint64 v) noexcept
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_HAS_CONSTEXPR_BITOPS

#define QT_HAS_CONSTEXPR_BITOPS

Definition at line 16 of file qalgorithms.h.

Function Documentation

◆ qCountLeadingZeroBits() [1/5]

uint qCountLeadingZeroBits ( quint16 v)
inlineconstexprnoexcept

Definition at line 96 of file qalgorithms.h.

◆ qCountLeadingZeroBits() [2/5]

uint qCountLeadingZeroBits ( quint32 v)
inlineconstexprnoexcept

Definition at line 86 of file qalgorithms.h.

◆ qCountLeadingZeroBits() [3/5]

uint qCountLeadingZeroBits ( quint64 v)
inlineconstexprnoexcept

Definition at line 101 of file qalgorithms.h.

◆ qCountLeadingZeroBits() [4/5]

uint qCountLeadingZeroBits ( quint8 v)
inlineconstexprnoexcept

Definition at line 91 of file qalgorithms.h.

◆ qCountLeadingZeroBits() [5/5]

uint qCountLeadingZeroBits ( unsigned long v)
inlineconstexprnoexcept

Definition at line 106 of file qalgorithms.h.

◆ qCountTrailingZeroBits() [1/5]

uint qCountTrailingZeroBits ( quint16 v)
inlineconstexprnoexcept

Definition at line 71 of file qalgorithms.h.

◆ qCountTrailingZeroBits() [2/5]

uint qCountTrailingZeroBits ( quint32 v)
inlineconstexprnoexcept

Definition at line 61 of file qalgorithms.h.

◆ qCountTrailingZeroBits() [3/5]

uint qCountTrailingZeroBits ( quint64 v)
inlineconstexprnoexcept

Definition at line 76 of file qalgorithms.h.

◆ qCountTrailingZeroBits() [4/5]

uint qCountTrailingZeroBits ( quint8 v)
inlineconstexprnoexcept

Definition at line 66 of file qalgorithms.h.

◆ qCountTrailingZeroBits() [5/5]

uint qCountTrailingZeroBits ( unsigned long v)
inlineconstexprnoexcept

Definition at line 81 of file qalgorithms.h.

◆ qDeleteAll() [1/2]

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

Definition at line 30 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 21 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 113 of file qalgorithms.h.

◆ qPopulationCount() [1/5]

Q_DECL_CONST_FUNCTION constexpr uint qPopulationCount ( long unsigned int v)
inlineconstexprnoexcept

Definition at line 56 of file qalgorithms.h.

◆ qPopulationCount() [2/5]

Q_DECL_CONST_FUNCTION constexpr uint qPopulationCount ( quint16 v)
inlineconstexprnoexcept

Definition at line 46 of file qalgorithms.h.

◆ qPopulationCount() [3/5]

Q_DECL_CONST_FUNCTION constexpr uint qPopulationCount ( quint32 v)
inlineconstexprnoexcept

Definition at line 36 of file qalgorithms.h.

◆ qPopulationCount() [4/5]

Q_DECL_CONST_FUNCTION constexpr uint qPopulationCount ( quint64 v)
inlineconstexprnoexcept

Definition at line 51 of file qalgorithms.h.

◆ qPopulationCount() [5/5]

Q_DECL_CONST_FUNCTION constexpr uint qPopulationCount ( quint8 v)
inlineconstexprnoexcept

Definition at line 41 of file qalgorithms.h.