![]() |
0.3.0
|
Functions | |
template<typename Tuple, typename Predicate> | |
bool | any_of (Tuple &&tuple, Predicate pred) |
Any_of algorithm for tuples. | |
template<typename Tuple, typename Predicate> | |
size_t | find_if (Tuple &&tuple, Predicate pred) |
Find_if for tuples. | |
template<class F, class Tuple> | |
constexpr decltype(auto) | for_each (Tuple &&t, F &&f) |
For-each algorithm for tuples. | |
template<class Tuple, class F, std::size_t... I> | |
F | for_each_impl (Tuple &&t, F &&f, std::index_sequence< I... >) |
For-each implementation for tuples. | |
template<typename... Ts, typename Function> | |
auto | transform (std::tuple< Ts... > const &inputs, Function function) |
Transform algorithm for tuples. | |
template<class Tuple, class F, std::size_t... Is> | |
auto | transform_impl (Tuple &&t, F &&f, std::index_sequence< Is... >) -> decltype(std::make_tuple(std::forward< F >(f)(std::get< Is >(std::forward< Tuple >(t)))...)) |
Transform implementation for tuples. | |
bool NAV::CartesianProduct::tuple_algos::any_of | ( | Tuple && | tuple, |
Predicate | pred ) |
Any_of algorithm for tuples.
[in] | tuple | The tuple to search |
[in] | pred | Predicate to check for |
Definition at line 115 of file CartesianProduct.hpp.
size_t NAV::CartesianProduct::tuple_algos::find_if | ( | Tuple && | tuple, |
Predicate | pred ) |
Find_if for tuples.
[in] | tuple | The tuple to search |
[in] | pred | Predicate to use for finding |
Definition at line 94 of file CartesianProduct.hpp.
|
constexpr |
For-each algorithm for tuples.
[in] | t | The tuple |
[in] | f | Function to call |
Definition at line 50 of file CartesianProduct.hpp.
F NAV::CartesianProduct::tuple_algos::for_each_impl | ( | Tuple && | t, |
F && | f, | ||
std::index_sequence< I... > | ) |
For-each implementation for tuples.
[in] | t | The tuple |
[in] | f | Function to call |
Definition at line 40 of file CartesianProduct.hpp.
auto NAV::CartesianProduct::tuple_algos::transform | ( | std::tuple< Ts... > const & | inputs, |
Function | function ) |
Transform algorithm for tuples.
[in] | inputs | Input tuple |
[in] | function | Function to call |
Definition at line 84 of file CartesianProduct.hpp.
auto NAV::CartesianProduct::tuple_algos::transform_impl | ( | Tuple && | t, |
F && | f, | ||
std::index_sequence< Is... > | ) -> decltype(std::make_tuple(std::forward<F>(f)(std::get<Is>(std::forward<Tuple>(t)))...)) |
Transform implementation for tuples.
[in] | t | Tuple |
[in] | f | Function to call |
Definition at line 61 of file CartesianProduct.hpp.