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
8
namespace
MR::Unsigned
9
{
10
17
template
<
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
}
MR::Unsigned
Additional support for unsigned types.
Definition
MRUnsigned.h:9
MR::Unsigned::abs
constexpr T abs(T value)
Definition
MRUnsigned.h:18
MeshLib
source
MRMesh
MRUnsigned.h
Generated by
1.11.0