FougTools
0.7.0dev-046fb6a
Handy tools for C++, Qt and OpenCascade
|
Provides a collection of tools around QVariant. More...
#include <qttools/core/qvariant_utils.h>
Static Public Member Functions | |
template<typename T , template< typename > class CONTAINER> | |
static CONTAINER< T > | toTypedContainer (const CONTAINER< QVariant > &variants) |
Converts a container of QVariant to a container of typed data (T ) More... | |
template<typename T , template< typename > class CONTAINER> | |
static CONTAINER< QVariant > | toContainerOfVariants (const CONTAINER< T > &typeds) |
Converts a container of typed data (T ) to a container of QVariant. More... | |
Provides a collection of tools around QVariant.
|
static |
Converts a container of typed data (T
) to a container of QVariant.
The container can be of any type (std::list<>, QVector<>, ...) the only restriction is that it must satisfy the concept of Back Insertion Sequence (see http://www.sgi.com/tech/stl/BackInsertionSequence.html)
|
static |
Converts a container of QVariant to a container of typed data (T
)
The container can be of any type (std::list<>, QVector<>, ...) the only restriction is that it must satisfy the concept of Back Insertion Sequence (see http://www.sgi.com/tech/stl/BackInsertionSequence.html)