Comparison operations

Compare things in various ways.

Name Description
in(Ts &&... vs) Test whether the input is in the specified list of values.

<...Ts> in(Ts &&... vs)

<piped/cmp.hpp>

template<typename... Ts>
auto piped::in(Ts &&... vs)

Description

Test whether the input is in the specified list of values.

... || v == vs.

Example:

if(x | in(1, 2, 3)) {
  // ...
}
Parameter
vs Ts &&... A list of values which can compare by == to the input.