libsemigroups  v3.0.0
C++ library for semigroups and monoids
All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Modules Pages
Loading...
Searching...
No Matches
BooleanPlus

Defined in matrix.hpp.

This is a stateless struct with a single call operator of signature: bool operator()(bool x, bool y) const noexcept which returns x || y; representing addition in the boolean semiring.

Public Member Functions

constexpr bool operator() (bool x, bool y) const noexcept
 Call operator for addition.
 

Member Function Documentation

◆ operator()()

bool operator() ( bool x,
bool y ) const
inlineconstexprnoexcept

This function returns the sum of its arguments in the boolean semiring.

Parameters
xthe first value.
ythe second value.
Returns
The sum of x and y in the boolean semiring.
Exceptions
This function is noexcept and is guaranteed never to throw.

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