OpenLB 1.7
|
Wrapper of function object std::minus with special handling for bool. More...
#include <arithmetic.h>
Public Member Functions | |
constexpr T | operator() (const T &lhs, const T &rhs) const |
constexpr bool | operator() (const bool &lhs, const bool &rhs) const |
Operator specialization for boolean without operation. | |
Static Public Attributes | |
static const char | symbol = '-' |
symbol character for functor naming | |
Wrapper of function object std::minus with special handling for bool.
T | Domain of the substraction operation, without operation is performed for boolean inputs. |
Note that specialization is not required for boolean union (add) and intersection (multiply) functors as their behavior is implicitly defined by the corresponding arithmetic operation on the integer representation.
Definition at line 44 of file arithmetic.h.
|
constexpr |
Operator specialization for boolean without operation.
i.e. implements what one reasonably expects to happen when substracting indicator functors.
Definition at line 60 of file arithmetic.h.
|
inlineconstexpr |
Definition at line 48 of file arithmetic.h.
|
static |
symbol character for functor naming
Definition at line 46 of file arithmetic.h.