Iros
 
Loading...
Searching...
No Matches
to_unsigned.h
Go to the documentation of this file.
1#pragma once
2
4#include "di/meta/language.h"
5
6namespace di::math {
7namespace detail {
9 template<concepts::Integral T>
10 constexpr auto operator()(T value) const {
11 return static_cast<meta::MakeUnsigned<T>>(value);
12 }
13 };
14}
15
16constexpr inline auto to_unsigned = detail::ToUnsignedFunction {};
17}
18
19namespace di {
21}
Definition abs.h:11
Definition abs.h:10
constexpr auto to_unsigned
Definition to_unsigned.h:16
detail::MakeUnsignedHelper< RemoveCV< T > >::Type MakeUnsigned
Definition language.h:362
Definition zstring_parser.h:9
Definition to_unsigned.h:8
constexpr auto operator()(T value) const
Definition to_unsigned.h:10