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
QDuplicateTracker< T, Prealloc > Class Template Reference

#include <qduplicatetracker_p.h>

Collaboration diagram for QDuplicateTracker< T, Prealloc >:

Public Types

using const_iterator = typename Set::const_iterator

Public Member Functions

 QDuplicateTracker ()
 QDuplicateTracker (qsizetype n)
void reserve (qsizetype n)
bool hasSeen (const T &s)
bool hasSeen (T &&s)
bool contains (const T &s) const
template<typename C>
void appendTo (C &c) const &
template<typename C>
void appendTo (C &c) &&
void clear ()
const_iterator begin () const
const_iterator end () const
const_iterator cbegin () const
const_iterator cend () const

Static Public Attributes

static constexpr bool uses_pmr

Detailed Description

template<typename T, size_t Prealloc = 32>
class QDuplicateTracker< T, Prealloc >

Definition at line 30 of file qduplicatetracker_p.h.

Member Typedef Documentation

◆ const_iterator

template<typename T, size_t Prealloc = 32>
using QDuplicateTracker< T, Prealloc >::const_iterator = typename Set::const_iterator

Definition at line 140 of file qduplicatetracker_p.h.

Constructor & Destructor Documentation

◆ QDuplicateTracker() [1/2]

template<typename T, size_t Prealloc = 32>
QDuplicateTracker< T, Prealloc >::QDuplicateTracker ( )
inline

Definition at line 80 of file qduplicatetracker_p.h.

◆ QDuplicateTracker() [2/2]

template<typename T, size_t Prealloc = 32>
QDuplicateTracker< T, Prealloc >::QDuplicateTracker ( qsizetype n)
inlineexplicit

Definition at line 81 of file qduplicatetracker_p.h.

Member Function Documentation

◆ appendTo() [1/2]

template<typename T, size_t Prealloc = 32>
template<typename C>
void QDuplicateTracker< T, Prealloc >::appendTo ( C & c) &&
inline

Definition at line 112 of file qduplicatetracker_p.h.

◆ appendTo() [2/2]

template<typename T, size_t Prealloc = 32>
template<typename C>
void QDuplicateTracker< T, Prealloc >::appendTo ( C & c) const &
inline

Definition at line 105 of file qduplicatetracker_p.h.

◆ begin()

template<typename T, size_t Prealloc = 32>
const_iterator QDuplicateTracker< T, Prealloc >::begin ( ) const
inline

Definition at line 141 of file qduplicatetracker_p.h.

◆ cbegin()

template<typename T, size_t Prealloc = 32>
const_iterator QDuplicateTracker< T, Prealloc >::cbegin ( ) const
inline

Definition at line 143 of file qduplicatetracker_p.h.

◆ cend()

template<typename T, size_t Prealloc = 32>
const_iterator QDuplicateTracker< T, Prealloc >::cend ( ) const
inline

Definition at line 144 of file qduplicatetracker_p.h.

◆ clear()

template<typename T, size_t Prealloc = 32>
void QDuplicateTracker< T, Prealloc >::clear ( )
inline

Definition at line 122 of file qduplicatetracker_p.h.

◆ contains()

template<typename T, size_t Prealloc = 32>
bool QDuplicateTracker< T, Prealloc >::contains ( const T & s) const
inlinenodiscard

Definition at line 99 of file qduplicatetracker_p.h.

◆ end()

template<typename T, size_t Prealloc = 32>
const_iterator QDuplicateTracker< T, Prealloc >::end ( ) const
inline

Definition at line 142 of file qduplicatetracker_p.h.

◆ hasSeen() [1/2]

template<typename T, size_t Prealloc = 32>
bool QDuplicateTracker< T, Prealloc >::hasSeen ( const T & s)
inlinenodiscard

Definition at line 90 of file qduplicatetracker_p.h.

◆ hasSeen() [2/2]

template<typename T, size_t Prealloc = 32>
bool QDuplicateTracker< T, Prealloc >::hasSeen ( T && s)
inlinenodiscard

Definition at line 94 of file qduplicatetracker_p.h.

◆ reserve()

template<typename T, size_t Prealloc = 32>
void QDuplicateTracker< T, Prealloc >::reserve ( qsizetype n)
inline

Definition at line 89 of file qduplicatetracker_p.h.

Member Data Documentation

◆ uses_pmr

template<typename T, size_t Prealloc = 32>
bool QDuplicateTracker< T, Prealloc >::uses_pmr
inlinestaticconstexpr
Initial value:
=
false

Definition at line 73 of file qduplicatetracker_p.h.


The documentation for this class was generated from the following file: