Iros
Loading...
Searching...
No Matches
to_unsigned.h
Go to the documentation of this file.
1
#pragma once
2
3
#include "
di/function/pipeline.h
"
4
#include "
di/meta/language.h
"
5
6
namespace
di::math
{
7
namespace
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
16
constexpr
inline
auto
to_unsigned
=
detail::ToUnsignedFunction
{};
17
}
18
19
namespace
di
{
20
using
math::to_unsigned
;
21
}
language.h
di::math::detail
Definition
abs.h:11
di::math
Definition
abs.h:10
di::math::to_unsigned
constexpr auto to_unsigned
Definition
to_unsigned.h:16
di::meta::MakeUnsigned
detail::MakeUnsignedHelper< RemoveCV< T > >::Type MakeUnsigned
Definition
language.h:362
di
Definition
zstring_parser.h:9
pipeline.h
di::function::pipeline::EnablePipeline
Definition
pipeable.h:8
di::math::detail::ToUnsignedFunction
Definition
to_unsigned.h:8
di::math::detail::ToUnsignedFunction::operator()
constexpr auto operator()(T value) const
Definition
to_unsigned.h:10
libs
di
include
di
math
to_unsigned.h
Generated by
1.13.0