summaryrefslogtreecommitdiffstats
path: root/searchcommon/src/vespa/searchcommon/attribute/multi_value_traits.h
diff options
context:
space:
mode:
Diffstat (limited to 'searchcommon/src/vespa/searchcommon/attribute/multi_value_traits.h')
-rw-r--r--searchcommon/src/vespa/searchcommon/attribute/multi_value_traits.h11
1 files changed, 2 insertions, 9 deletions
diff --git a/searchcommon/src/vespa/searchcommon/attribute/multi_value_traits.h b/searchcommon/src/vespa/searchcommon/attribute/multi_value_traits.h
index fcb3f1bd33a..f03b031f991 100644
--- a/searchcommon/src/vespa/searchcommon/attribute/multi_value_traits.h
+++ b/searchcommon/src/vespa/searchcommon/attribute/multi_value_traits.h
@@ -6,17 +6,13 @@
namespace search::multivalue {
-template <typename T> class Value;
template <typename T> class WeightedValue;
/*
* Check for the presence of a weight.
*/
template <typename T>
-struct is_WeightedValue;
-
-template <typename T>
-struct is_WeightedValue<Value<T>> : std::false_type {};
+struct is_WeightedValue : std::false_type {};
template <typename T>
struct is_WeightedValue<WeightedValue<T>> : std::true_type {};
@@ -28,10 +24,7 @@ inline constexpr bool is_WeightedValue_v = is_WeightedValue<T>::value;
* Extract inner type.
*/
template <typename T>
-struct ValueType;
-
-template <typename T>
-struct ValueType<Value<T>> { using type = T; };
+struct ValueType { using type = T; };
template <typename T>
struct ValueType<WeightedValue<T>> { using type = T; };