13 extern int qMetaTypeId_CVariantList;
19 std::copy(other.begin(), other.end(), std::back_inserter(*
this));
24 std::move(other.begin(), other.end(), std::back_inserter(*
this));
30 QMetaType::registerConverter<CVariantList, QVector<CVariant>>(
31 [](
const CVariantList &list) {
return list.toVector(); });
32 QMetaType::registerConverter<QVector<CVariant>,
CVariantList>(
33 [](
const QVector<CVariant> &list) {
return CSequence(list); });
34 qMetaTypeId_CVariantList = qMetaTypeId<CVariantList>();
bool containsBy(Predicate p) const
Return true if there is an element for which a given predicate returns true.
Generic sequential container with value semantics.
Wrapper around QVariant which provides transparent access to CValueObject methods of the contained ob...
bool matches(const CVariant &event) const
If this is an event subscription, return true if it matches the given event.
Value object encapsulating a list of variants.
CVariantList()
Default constructor.
CSequence()=default
Default constructor.
bool matches(const CVariant &event) const
True if any element of the list matches the given event.
static void registerMetadata()
Register metadata.
Free functions in swift::misc.
#define SWIFT_DEFINE_SEQUENCE_MIXINS(Namespace, T, List)
Explicit template definition of mixins for a CSequence subclass.