swift
Namespaces | Functions
predicates.h File Reference

Go to the source code of this file.

Namespaces

 swift::misc
 Free functions in swift::misc.
 
 swift::misc::predicates
 Functor classes for evaluating predicate calculus expressions.
 

Functions

template<class... Ts>
auto swift::misc::predicates::MemberEqual (Ts... vs)
 Predicate which tests whether some member functions return some values. More...
 
template<class... Ts>
auto swift::misc::predicates::MemberLess (Ts... vs)
 Predicate which compares the return values of some member functions of two objects. More...
 
template<class T >
auto swift::misc::predicates::MemberTransform (T memberFunc)
 Returns a function object that returns the value returned by one of it's argument member functions.
 
template<class T >
auto swift::misc::predicates::MemberValid (T memberFunc)
 Returns a predicate that returns true if the isValid() method of the value returned from one of its member functions returns true.
 
template<class T , class C >
auto swift::misc::predicates::MemberIsAnyOf (T memberFunc, const C &container)
 Returns a predicate that returns true if the value returned by its argument's member function can be found in a captured container. More...
 
template<class T >
auto swift::misc::predicates::Equals (T &&value)
 Returns a predicate that returns true if its argument compares equal with another, captured value.
 
template<class... Ts>
auto swift::misc::predicates::EqualsByMembers (Ts... vs)
 Returns a predicate that returns true if its arguments compare equal to each other, considering only the captured members.