From d131631ce46d87ff281ee0b2b9f8c92d1ea324d9 Mon Sep 17 00:00:00 2001 From: Baptiste Wicht Date: Thu, 5 Apr 2018 11:54:08 +0200 Subject: [PATCH] Add support for identity_of --- tstl/include/type_traits.hpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tstl/include/type_traits.hpp b/tstl/include/type_traits.hpp index b2c98110..24bfae1b 100644 --- a/tstl/include/type_traits.hpp +++ b/tstl/include/type_traits.hpp @@ -374,6 +374,14 @@ struct is_integral { static constexpr const bool value = true; }; +template +struct identity_of { + using type = T; +}; + +template +using identity_of_t = typename identity_of::type; + } //end of namespace std #endif