Aller au contenu
Bienvenue sur la nouvelle documentation de CppUtils !

Namespace: CppUtils::Math

enum class HorizontalAlignment {
Left = 0,
Center = 1,
Right = 2
};
using CppUtils::Math::BigUInt = typedef BasicBigInt<false>;
using CppUtils::Math::BigInt = typedef BasicBigInt<true>;
template <class T>
constexpr auto makeMask(std::size_t length, HorizontalAlignment alignment) noexcept -> T;

template <std::integral T>
constexpr auto toBigEndian(T value) -> T;

template <std::integral T>
constexpr auto toLittleEndian(T value) -> T;

template <std::integral Integer>
auto getRandomNumberInInterval(Integer min, Integer max) -> Integer;

constexpr auto absolute(auto number) -> decltype(auto);

template <std::floating_point Float>
constexpr auto isEqual(Float lhs, Float rhs, Float epsilon=std::numeric_limits<Float>::epsilon(), Float minimumEpsilon=std::numeric_limits<Float>::min()) noexcept -> bool;

template <Type::Numeric T>
constexpr auto isBetween(T value, T low, T high) noexcept -> bool;