(C++) Predicate

January 30, 2018 · View on GitHub

 

 

 

 

 

(C++) Predicate

 

A predicate is a logical expression that evaluates to true or false, like in if-statements.

 

 

 

 

 

Examples

 

  • Predicate example 1: ReplaceNegativeByZero
  • In_regex

 

 

 

 

 

STL predicates

 

An overview of STL predicates names and their corresponding operator, from [0]. These predicates can be found in the header file functional.

 

 

 

 

 

 

References