#include "UT_API.h"
#include <tuple>
#include <type_traits>
#include <utility>
#include <stddef.h>
Go to the source code of this file.
|
struct | UT_TupleUtilImpl::AnyOf< T, F, I, N > |
|
struct | UT_TupleUtilImpl::AnyOf< T, F, N, N > |
|
struct | UT_TupleUtilImpl::AnyOf< T, F, I, N > |
|
struct | UT_TupleUtilImpl::ForEach< T, F, I, N > |
|
struct | UT_TupleUtilImpl::ForEach< T, F, N, N > |
|
struct | UT_TupleUtilImpl::ForEach< T, F, I, N > |
|
template<typename T , typename F >
bool UTtupleAnyOf |
( |
T && |
tuple, |
|
|
F && |
f |
|
) |
| |
Invoke functor f for each element e in a tuple, returning true as soon as f(e) returns true. Returns false when f(e) is false for all elements.
- Note
- This is like std::any_of() except for tuples.
-
The tuple need not be std::tuple, and instead may be anything that supports std::get and std::tuple_size; in particular, std::array and std::pair may be used.
Definition at line 82 of file UT_TupleUtil.h.
template<typename T , typename F >
void UTtupleForEach |
( |
T && |
tuple, |
|
|
F && |
f |
|
) |
| |
Invoke functor f for each element e in a tuple.
- Note
- This is like std::for_each() except for tuples.
-
The tuple need not be std::tuple, and instead may be anything that supports std::get and std::tuple_size; in particular, std::array and std::pair may be used.
Definition at line 97 of file UT_TupleUtil.h.