di 0.1.0
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 {
8 struct ToUnsignedFunction : function::pipeline::EnablePipeline {
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}
constexpr auto value
Definition value.h:34
Definition abs.h:10
constexpr auto to_unsigned
Definition to_unsigned.h:16
detail::MakeUnsignedHelper< RemoveCV< T > >::Type MakeUnsigned
Definition language.h:362
Definition any_storable.h:9