We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a808ab7 commit 7a1d92eCopy full SHA for 7a1d92e
tmp-make_signed/make_signed.hpp
@@ -0,0 +1,17 @@
1
+#ifndef TemplateMetaprogramming_MakeSigned_HeaderPlusPlus
2
+#define TemplateMetaprogramming_MakeSigned_HeaderPlusPlus
3
+
4
+#include <type_traits>
5
+#include "identity.hpp" //see ../tmp-identity/
6
7
8
9
+template<typename T>
10
+using make_signed = typename std::conditional
11
+<
12
+ std::is_integral<T>::value,
13
+ std::make_signed<T>,
14
+ identity<T>
15
+>::type;
16
17
+#endif
0 commit comments