From 4aca266eb98c8d982d55bcd43b6f5b96cedfca6e Mon Sep 17 00:00:00 2001 From: Krylov Yaroslav Date: Sun, 2 Jul 2023 15:42:57 +0400 Subject: [PATCH] extract container related type traits into ureact/detail/container_type_traits.hpp --- include/ureact/adaptor/collect.hpp | 28 +-------- include/ureact/adaptor/join.hpp | 10 +-- .../ureact/detail/container_type_traits.hpp | 63 +++++++++++++++++++ 3 files changed, 65 insertions(+), 36 deletions(-) create mode 100644 include/ureact/detail/container_type_traits.hpp diff --git a/include/ureact/adaptor/collect.hpp b/include/ureact/adaptor/collect.hpp index bbfbaddb..72b03d74 100644 --- a/include/ureact/adaptor/collect.hpp +++ b/include/ureact/adaptor/collect.hpp @@ -12,39 +12,13 @@ #include #include +#include UREACT_BEGIN_NAMESPACE namespace detail { -template -struct has_push_back_method : std::false_type -{}; - -template -struct has_push_back_method().push_back( std::declval() ) )>> - : std::true_type -{}; - -template -inline constexpr bool has_push_back_method_v = has_push_back_method::value; - -template -struct has_insert_method : std::false_type -{}; - -template -struct has_insert_method().insert( std::declval() ) )>> : std::true_type -{}; - -template -inline constexpr bool has_insert_method_v = has_insert_method::value; - template