Functions
constexpr_math_test.cc File Reference
#include "lardataalg/Utilities/constexpr_math.h"

Go to the source code of this file.

Functions

int main ()
 

Function Documentation

int main ( void  )

Definition at line 3 of file constexpr_math_test.cc.

4 {
5  static_assert(util::abs(-0.0) == 0.0);
6  static_assert(util::abs(-2.0) == 2.0);
7  static_assert(util::abs(-2.0F) == 2.0F);
8  static_assert(util::abs(-2) == 2);
9  static_assert(util::abs(-2L) == 2L);
10  static_assert(util::abs(-2LL) == 2LL);
11 }
constexpr auto abs(T v)
Returns the absolute value of the argument.