Iros
 
Loading...
Searching...
No Matches
to_signed.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::MakeSigned<T>>(value);
12 }
13 };
14}
15
16constexpr inline auto to_signed = detail::ToSignedFunction {};
17}
18
19namespace di {
20using math::to_signed;
21}
Definition abs.h:11
Definition abs.h:10
constexpr auto to_signed
Definition to_signed.h:16
detail::MakeSignedHelper< RemoveCV< T > >::Type MakeSigned
Definition language.h:316
Definition zstring_parser.h:9
Definition to_signed.h:8
constexpr auto operator()(T value) const
Definition to_signed.h:10