|
| template<typename T > |
| bool | contains (const std::vector< T > &k, const T &kk) noexcept |
| | Checks if an element is present in the set.
|
| |
| template<typename T > |
| int | count (const std::vector< T > &k, const T &kk) noexcept |
| | Counts the number of times an element is present in the set.
|
| |
| template<typename T > |
| std::vector< T > & | unique (std::vector< T > &c, const std::vector< T > &k) |
| | Removes duplicates from a set.
|
| |
| template<typename T > |
| std::vector< T > & | unique (std::vector< T > &k) |
| | Removes duplicates from a set.
|
| |
| template<typename T > |
| std::vector< T > | unique (std::vector< T > &&k) |
| | Removes duplicates from a set.
|
| |
| template<typename T > |
| std::vector< T > & | sort (std::vector< T > &c, const std::vector< T > &k) |
| | Sorts a set in ascending order.
|
| |
| template<typename T > |
| std::vector< T > & | sort (std::vector< T > &k) |
| | Sorts a set in ascending order.
|
| |
| template<typename T > |
| std::vector< T > | sort (std::vector< T > &&k) |
| | Sorts a set in ascending order.
|
| |
| template<typename T > |
| std::vector< T > & | rsort (std::vector< T > &c, const std::vector< T > &k) |
| | Sorts a set in descending order.
|
| |
| template<typename T > |
| std::vector< T > & | rsort (std::vector< T > &k) |
| | Sorts a set in descending order.
|
| |
| template<typename T > |
| std::vector< T > | rsort (std::vector< T > &&k) |
| | Sorts a set in descending order.
|
| |
| template<typename T > |
| std::vector< T > & | reverse (std::vector< T > &c, const std::vector< T > &k) |
| | Reverses the passed set.
|
| |
| template<typename T > |
| std::vector< T > & | reverse (std::vector< T > &k) |
| | Reverses the passed set.
|
| |
| template<typename T > |
| std::vector< T > | reverse (std::vector< T > &&k) |
| | Reverses the passed set.
|
| |
| template<typename T > |
| std::vector< T > & | sunion (std::vector< T > &c, const std::vector< T > &k, const std::vector< T > &kk) |
| | Obtains the set theory union of two sets.
|
| |
| template<typename T > |
| std::vector< T > | sunion (const std::vector< T > &k, const std::vector< T > &kk) |
| | Obtains the set theory union of two sets.
|
| |
| template<typename T > |
| std::vector< T > | sunion (std::vector< T > &&k, const std::vector< T > &&kk) |
| | Obtains the set theory union of two sets.
|
| |
| template<typename T > |
| std::vector< T > & | intersection (std::vector< T > &c, const std::vector< T > &k, const std::vector< T > &kk) |
| | Obtains the set theory intersection of two sets.
|
| |
| template<typename T > |
| std::vector< T > | intersection (const std::vector< T > &k, const std::vector< T > &kk) |
| | Obtains the set theory intersection of two sets.
|
| |
| template<typename T > |
| std::vector< T > | intersection (std::vector< T > &&k, const std::vector< T > &&kk) |
| | Obtains the set theory intersection of two sets.
|
| |
| template<typename T > |
| std::vector< T > & | diff (std::vector< T > &c, const std::vector< T > &k, const std::vector< T > &kk) |
| | Obtains the set theory difference of two sets.
|
| |
| template<typename T > |
| std::vector< T > | diff (const std::vector< T > &k, const std::vector< T > &kk) |
| | Obtains the set theory difference of two sets.
|
| |
| template<typename T > |
| std::vector< T > | diff (std::vector< T > &&k, const std::vector< T > &&kk) |
| | Obtains the set theory difference of two sets.
|
| |
| template<typename T > |
| std::vector< T > & | sdiff (std::vector< T > &c, const std::vector< T > &k, const std::vector< T > &kk) |
| | Obtains the set theory symmetric difference of two sets.
|
| |
| template<typename T > |
| std::vector< T > | sdiff (const std::vector< T > &k, const std::vector< T > &kk) |
| | Obtains the set theory symmetric difference of two sets.
|
| |
| template<typename T > |
| std::vector< T > | sdiff (std::vector< T > &&k, const std::vector< T > &&kk) |
| | Obtains the set theory symmetric difference of two sets.
|
| |
Contains all the functions for performing set operations on std::vector.
The set namespace contains functions for performing common set operations on std::vector, such as checking if an element is present, counting the number of occurrences, and performing union, intersection, difference and symmetric difference operations.