37 #ifndef Foam_predicates_H 38 #define Foam_predicates_H 41 #include <type_traits> 55 struct always : std::true_type
67 template<
class T1,
class T2>
75 constexpr
bool match(
const std::string&,
bool literal=
false) const
noexcept 87 struct never : std::false_type
99 template<
class T1,
class T2>
107 constexpr
bool match(
const std::string&,
bool literal=
false) const
noexcept Unary and binary predicates that never return true, useful for templating.
constexpr bool match(const std::string &, bool literal=false) const noexcept
String match.
constexpr bool operator()(const T &) const noexcept
Unary predicate.
constexpr bool operator()(const T &) const noexcept
Unary predicate.
constexpr bool match(const std::string &, bool literal=false) const noexcept
String match.
Unary and binary predicates that always return true, useful for templating.
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)