fennec
Loading...
Searching...
No Matches
numeric_transforms.h
Go to the documentation of this file.
1// =====================================================================================================================
2// fennec, a free and open source game engine
3// Copyright © 2025 Medusa Slockbower
4//
5// This program is free software: you can redistribute it and/or modify
6// it under the terms of the GNU General License as published by
7// the Free Software Foundation, either version 3 of the License, or
8// (at your option) any later version.
9//
10// This program is distributed in the hope that it will be useful,
11// but WITHOUT ANY WARRANTY; without even the implied warranty of
12// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13// GNU General License for more details.
14//
15// You should have received a copy of the GNU General License
16// along with this program. If not, see <https://www.gnu.org/licenses/>.
17// =====================================================================================================================
18
29
30#ifndef FENNEC_LANG_NUMERIC_TRANSFORMS_H
31#define FENNEC_LANG_NUMERIC_TRANSFORMS_H
32
56
58#include <fennec/lang/detail/_numeric_transforms.h>
59
60namespace fennec
61{
62
66template<typename TypeT> struct make_signed : detail::_make_signed<remove_cv_t<TypeT>> {};
67
70template<typename TypeT> using make_signed_t = typename make_signed<TypeT>::type;
71
72
76template<typename TypeT> struct make_unsigned : detail::_make_unsigned<remove_cv_t<TypeT>> {};
77
80template<typename TypeT> using make_unsigned_t = typename make_unsigned<TypeT>::type;
81
82}
83
84#endif // FENNEC_LANG_NUMERIC_TRANSFORMS_H
typename make_unsigned< TypeT >::type make_unsigned_t
Shorthand for typename make_unsigned<TypeT>::type
Definition numeric_transforms.h:80
typename make_signed< TypeT >::type make_signed_t
Shorthand for typename make_signed<TypeT>::type
Definition numeric_transforms.h:70
Get the corresponding signed integral type of TypeT.
Definition numeric_transforms.h:66
Get the corresponding unsigned integral type of TypeT.
Definition numeric_transforms.h:76
Type Transforms