Iros
Loading...
Searching...
No Matches
to_signed.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
ToSignedFunction
:
function::pipeline::EnablePipeline
{
9
template
<concepts::Integral T>
10
constexpr
auto
operator()
(T value)
const
{
11
return
static_cast<
meta::MakeSigned<T>
>
(value);
12
}
13
};
14
}
15
16
constexpr
inline
auto
to_signed
=
detail::ToSignedFunction
{};
17
}
18
19
namespace
di
{
20
using
math::to_signed
;
21
}
language.h
di::math::detail
Definition
abs.h:11
di::math
Definition
abs.h:10
di::math::to_signed
constexpr auto to_signed
Definition
to_signed.h:16
di::meta::MakeSigned
detail::MakeSignedHelper< RemoveCV< T > >::Type MakeSigned
Definition
language.h:316
di
Definition
zstring_parser.h:9
pipeline.h
di::function::pipeline::EnablePipeline
Definition
pipeable.h:8
di::math::detail::ToSignedFunction
Definition
to_signed.h:8
di::math::detail::ToSignedFunction::operator()
constexpr auto operator()(T value) const
Definition
to_signed.h:10
libs
di
include
di
math
to_signed.h
Generated by
1.13.0