Elm  2
ELM is a library providing generic data structures, OS-independent interface, plugins and XML.
Predicate< T > Struct Template Reference

#include </home/casse/Dev/elm/src/concepts.h>

Public Member Functions

bool test (const T &item)
 
bool operator() (const T &v)
 

Detailed Description

template<class T>
struct elm::concept::Predicate< T >

A predicate enables testing of an item and returns true or false. They are usually used by set functions as elm::forall() or elm::exists().

Parameters
TType of item to test.

Predicate concept.

Parameters
TType of value to test.

Member Function Documentation

◆ operator()()

bool operator() ( const T &  v)

◆ test()

bool test ( const T &  item)

Test if the predicate is true for the given item.

Parameters
itemItem to test.
Returns
True or false according to the internal policy.

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