The List class is a collection of static functions pertaining to lists.
#include <qx/core/qx-list.h>
◆ difference()
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 >
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: