swift
Loading...
Searching...
No Matches
sequence.cpp File Reference

Go to the source code of this file.

Namespaces

namespace  swift::misc
 Free functions in swift::misc.

Functions

QVector< int > swift::misc::private_ns::findIndices (int size, const std::function< bool(int)> &predicate)
 Decouple finding from value type.
QVector< int > swift::misc::private_ns::sortIndices (int size, const std::function< bool(int, int)> &cmp)
 Decouple sorting from value type.

Function Documentation

◆ findIndices()

SWIFT_MISC_EXPORT SWIFT_NO_INLINE QVector< int > swift::misc::private_ns::findIndices ( int size,
const std::function< bool(int)> & predicate )

Decouple finding from value type.

Definition at line 12 of file sequence.cpp.

◆ sortIndices()

SWIFT_MISC_EXPORT SWIFT_NO_INLINE QVector< int > swift::misc::private_ns::sortIndices ( int size,
const std::function< bool(int, int)> & cmp )

Decouple sorting from value type.

Definition at line 20 of file sequence.cpp.