From ea14492235d22bad37de6612850b2fef322ba119 Mon Sep 17 00:00:00 2001 From: Jessica James Date: Sun, 5 Dec 2021 17:43:46 -0600 Subject: [PATCH] Improve some of the is_ helpers --- src/include/jessilib/type_traits.hpp | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/src/include/jessilib/type_traits.hpp b/src/include/jessilib/type_traits.hpp index 223deea..e1fcfc4 100644 --- a/src/include/jessilib/type_traits.hpp +++ b/src/include/jessilib/type_traits.hpp @@ -212,8 +212,8 @@ struct is_unordered_multiset> { template struct is_map : std::false_type {}; -template -struct is_map> { +template +struct is_map> { using key_type = KeyT; using value_type = ValueT; static constexpr bool value{ true }; @@ -226,8 +226,8 @@ struct is_map> { template struct is_multimap : std::false_type {}; -template -struct is_multimap> { +template +struct is_multimap> { using key_type = KeyT; using value_type = ValueT; static constexpr bool value{ true }; @@ -240,8 +240,8 @@ struct is_multimap> { template struct is_unordered_map : std::false_type {}; -template -struct is_unordered_map> { +template +struct is_unordered_map> { using key_type = KeyT; using value_type = ValueT; static constexpr bool value{ true }; @@ -252,8 +252,8 @@ struct is_unordered_map> { template struct is_unordered_multimap : std::false_type {}; -template -struct is_unordered_multimap> { +template +struct is_unordered_multimap> { using key_type = KeyT; using value_type = ValueT; static constexpr bool value{ true }; @@ -266,8 +266,8 @@ struct is_unordered_multimap> { template struct is_associative_container : std::false_type {}; -template -struct is_associative_container> { +template +struct is_associative_container> { using key_type = KeyT; using value_type = ValueT; static constexpr bool value{ true }; @@ -275,8 +275,8 @@ struct is_associative_container> { constexpr bool operator()() const noexcept { return true; } }; -template -struct is_associative_container> { +template +struct is_associative_container> { using key_type = KeyT; using value_type = ValueT; static constexpr bool value{ true };