Loading...
Searching...
No Matches
always Struct Reference

Unary and binary predicates that always return true, useful for templating. More...

#include <predicates.H>

Inheritance diagram for always:
Collaboration diagram for always:

Public Member Functions

template<class T>
constexpr bool operator() (const T &) const noexcept
 Unary predicate.
template<class T1, class T2>
constexpr bool operator() (const T1 &, const T2 &) const noexcept
 Binary predicate.
constexpr bool match (const std::string &, bool literal=false) const noexcept
 String match.

Detailed Description

Unary and binary predicates that always return true, useful for templating.

Definition at line 53 of file predicates.H.

Member Function Documentation

◆ operator()() [1/2]

template<class T>
bool operator() ( const T & ) const
inlineconstexprnoexcept

Unary predicate.

Returns
true

Definition at line 61 of file predicates.H.

References Foam::T().

Here is the call graph for this function:

◆ operator()() [2/2]

template<class T1, class T2>
bool operator() ( const T1 & ,
const T2 &  ) const
inlineconstexprnoexcept

Binary predicate.

Returns
true

Definition at line 72 of file predicates.H.

◆ match()

bool match ( const std::string & ,
bool literal = false ) const
inlineconstexprnoexcept

String match.

Returns
true

Definition at line 82 of file predicates.H.

References Foam::noexcept.


The documentation for this struct was generated from the following file: