MeshLib C++ Docs
Loading...
Searching...
No Matches
MRUnsigned.h
Go to the documentation of this file.
1#pragma once
2
3#include <cstddef>
4#include <type_traits>
5
7
8namespace MR::Unsigned
9{
10
17template <typename T, std::enable_if_t<std::is_unsigned_v<T>, std::nullptr_t> = nullptr>
18[[nodiscard]] constexpr T abs( T value )
19{
20 return value;
21}
22
23}
Additional support for unsigned types.
Definition MRUnsigned.h:9
constexpr T abs(T value)
Definition MRUnsigned.h:18