#include <algorithm>
#include <functional>
#include <utility>
#include <vector>
Go to the source code of this file.
|
| template<typename Container , typename UnaryPredicate > |
| bool | souffle::all_of (const Container &c, UnaryPredicate p) |
| | A generic test checking whether all elements within a container satisfy a certain predicate. More...
|
| |
| template<typename Container , typename UnaryPredicate > |
| bool | souffle::any_of (const Container &c, UnaryPredicate p) |
| | A generic test checking whether any elements within a container satisfy a certain predicate. More...
|
| |
| template<typename A , typename F > |
| std::vector< A > | souffle::filter (std::vector< A > xs, F &&f) |
| | Filter a vector to include certain elements. More...
|
| |
| template<typename A , typename F > |
| std::vector< A > | souffle::filterNot (std::vector< A > xs, F &&f) |
| | Filter a vector to exclude certain elements. More...
|
| |
| template<typename Container , typename UnaryPredicate > |
| bool | souffle::none_of (const Container &c, UnaryPredicate p) |
| | A generic test checking whether all elements within a container satisfy a certain predicate. More...
|
| |