The List class is a collection of static functions pertaining to lists.
#include <qx/core/qx-list.h>
|
template<typename T, typename F>
requires static_castable_to<F*, T*> |
QList< T * > | static_pointer_cast (const QList< F * > fromList) |
|
|
template<typename T> |
static QList< T > | difference (QList< T > &listA, QList< T > &listB) |
|
template<typename T> |
static QList< T > * | subListThatContains (T element, QList< QList< T > * > listOfLists) |
|
◆ difference()
template<typename T>
static QList< T > Qx::List::difference |
( |
QList< T > & | listA, |
|
|
QList< T > & | listB ) |
|
inlinestatic |
Returns a new list that contains the elements of listA that are not present in listB.
◆ static_pointer_cast()
template<typename T, typename F>
requires static_castable_to<F*, T*>
QList< T * > Qx::List::static_pointer_cast |
( |
const QList< F * > | fromList | ) |
|
|
inline |
Returns a new list with each pointer in fromList converted to T* using static_cast<T*>(F*)
.
◆ subListThatContains()
template<typename T>
static QList< T > * Qx::List::subListThatContains |
( |
T | element, |
|
|
QList< QList< T > * > | listOfLists ) |
|
inlinestatic |
Returns a pointer to the first list found within listOfLists that contains element, or nullptr
if none were found.
The documentation for this class was generated from the following files: