A header-only library for figuring out if two numbers; when operated on using the operators: +, -, *, and /; are equal to the expression: 1 + 1
Clone this repository and move the OnePlusOne.hpp to your source directory and include it in your project.
isEqualToOnePlusOneWhenAdded( 6, 4 );
= false (6 + 4 = 10)
isEqualToOnePlusOneWhenSubtracted( 6, 4 );
= true (6 - 4 = 2)
bool isEqualToOnePlusOneWhenMultiplied( 6, 4 );
= false (6 * 4 = 24)
isEqualToOnePlusOneWhenDivided( 6, 4 );
= false (6 / 4 = 1)
None so far.
None yet, if your project uses this library, contact me!!!
- Adding support for modulus
- Adding support for greater than, less than, greater than or equal to, less than or equal to, and NOT equal to
- Adding support for three numbers
- Support for floating point numbers