以下成員源於類 QSet 已過時。 提供它們是為使舊源代碼能繼續工作。強烈建議不要在新代碼中使用它們。
(obsolete)
typedef
|
const_reverse_iterator |
(obsolete)
typedef
|
reverse_iterator |
(obsolete)
QSet::const_reverse_iterator
|
crbegin () const |
(obsolete)
QSet::const_reverse_iterator
|
crend () const |
(obsolete)
QSet::reverse_iterator
|
rbegin () |
(obsolete)
QSet::const_reverse_iterator
|
rbegin () const |
(obsolete)
QSet::reverse_iterator
|
rend () |
(obsolete)
QSet::const_reverse_iterator
|
rend () const |
(obsolete)
QList<T>
|
toList () const |
(obsolete)
QSet<T>
|
fromList (const QList<T> & list ) |
This typedef is obsolete. It is provided to keep old source code working. We strongly advise against using it in new code.
Deprecated in order to align with std::unordered_set functionality.
The QSet::const_reverse_iterator typedef provides an STL-style const reverse iterator for QSet .
It is simply a typedef for
std::reverse_iterator<QSet::const_iterator>
.
警告: Iterators on implicitly shared containers do not work exactly like STL-iterators. You should avoid copying a container while iterators are active on that container. For more information, read 隱式共享迭代器問題 .
該 typedef 在 Qt 5.6 引入。
另請參閱 QSet::rbegin (), QSet::rend (), QSet::reverse_iterator ,和 QSet::const_iterator .
This typedef is obsolete. It is provided to keep old source code working. We strongly advise against using it in new code.
Deprecated in order to align with std::unordered_set functionality.
The QSet::reverse_iterator typedef provides an STL-style non-const reverse iterator for QSet .
It is simply a typedef for
std::reverse_iterator<QSet::iterator>
.
警告: Iterators on implicitly shared containers do not work exactly like STL-iterators. You should avoid copying a container while iterators are active on that container. For more information, read 隱式共享迭代器問題 .
該 typedef 在 Qt 5.6 引入。
另請參閱 QSet::rbegin (), QSet::rend (), QSet::const_reverse_iterator ,和 QSet::iterator .
此函數已過時。提供它是為使舊源代碼能繼續工作。強烈建議不要在新代碼中使用它。
Deprecated in order to align with std::unordered_set functionality.
返迴常量 STL-style reverse iterator pointing to the first item in the set, in reverse order.
該函數在 Qt 5.6 引入。
另請參閱 begin (), rbegin (),和 rend ().
此函數已過時。提供它是為使舊源代碼能繼續工作。強烈建議不要在新代碼中使用它。
Deprecated in order to align with std::unordered_set functionality.
返迴常量 STL-style reverse iterator pointing to one past the last item in the set, in reverse order.
該函數在 Qt 5.6 引入。
另請參閱 end (), rend (),和 rbegin ().
[static]
QSet
<
T
> QSet::
fromList
(const
QList
<
T
> &
list
)
此函數已過時。提供它是為使舊源代碼能繼續工作。強烈建議不要在新代碼中使用它。
返迴新的 QSet object containing the data contained in list 。由於 QSet doesn't allow duplicates, the resulting QSet might be smaller than the list ,因為 QList can contain duplicates.
注意: Since Qt 5.14, range constructors are available for Qt's generic 容器類 and should be used in place of this method.
例如,若有代碼像
QStringList list; // ... QSet<QString> set = QSet<QString>::fromList(list);
可以把它重寫成
QStringList list; // ... QSet<QString> set(list.begin(), list.end());
另請參閱 QSet (InputIterator, InputIterator), values (),和 QList::toSet ().
此函數已過時。提供它是為使舊源代碼能繼續工作。強烈建議不要在新代碼中使用它。
Deprecated in order to align with std::unordered_set functionality.
返迴 STL-style reverse iterator pointing to the first item in the set, in reverse order.
該函數在 Qt 5.6 引入。
另請參閱 begin (), crbegin (),和 rend ().
此函數已過時。提供它是為使舊源代碼能繼續工作。強烈建議不要在新代碼中使用它。
Deprecated in order to align with std::unordered_set functionality.
這是重載函數。
該函數在 Qt 5.6 引入。
此函數已過時。提供它是為使舊源代碼能繼續工作。強烈建議不要在新代碼中使用它。
Deprecated in order to align with std::unordered_set functionality.
返迴 STL-style reverse iterator pointing to one past the last item in the set, in reverse order.
該函數在 Qt 5.6 引入。
另請參閱 end (), crend (),和 rbegin ().
此函數已過時。提供它是為使舊源代碼能繼續工作。強烈建議不要在新代碼中使用它。
Deprecated in order to align with std::unordered_set functionality.
這是重載函數。
該函數在 Qt 5.6 引入。
此函數已過時。提供它是為使舊源代碼能繼續工作。強烈建議不要在新代碼中使用它。
返迴新的 QList containing the elements in the set. The order of the elements in the QList is undefined.
注意: Since Qt 5.14, range constructors are available for Qt's generic 容器類 and should be used in place of this method.
例如,若有代碼像
QSet<QString> set; // ... QList<QString> list = set.toList();
可以把它重寫成
QSet<QString> set; // ... QList<QString> list(set.begin(), set.end());
or
QSet<QString> set; // ... QList<QString> list = set.values();
另請參閱 QList::QList (InputIterator, InputIterator), values (), fromList (),和 QList::fromSet ().