summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTor Egge <Tor.Egge@online.no>2023-04-27 13:27:16 +0200
committerTor Egge <Tor.Egge@online.no>2023-04-27 13:27:16 +0200
commita1d8f4d8c0b6eed7f7d144b44bac97f3af9786f6 (patch)
treeaa14951370c37527d3e3601d09dea6a8b482ca8c
parentc337182515133393df54f7ca4ec220010801126c (diff)
Deinline FeatureValues constructors, destructor and assignment operators.
-rw-r--r--vespalib/src/vespa/vespalib/util/featureset.cpp7
-rw-r--r--vespalib/src/vespa/vespalib/util/featureset.h6
2 files changed, 13 insertions, 0 deletions
diff --git a/vespalib/src/vespa/vespalib/util/featureset.cpp b/vespalib/src/vespa/vespalib/util/featureset.cpp
index 6ac90461cfb..99cf21e6280 100644
--- a/vespalib/src/vespa/vespalib/util/featureset.cpp
+++ b/vespalib/src/vespa/vespalib/util/featureset.cpp
@@ -87,4 +87,11 @@ FeatureSet::getFeaturesByDocId(uint32_t docId) const
return 0;
}
+FeatureValues::FeatureValues() noexcept = default;
+FeatureValues::FeatureValues(const FeatureValues& rhs) = default;
+FeatureValues::FeatureValues(FeatureValues&& rhs) noexcept = default;
+FeatureValues::~FeatureValues() noexcept = default;
+FeatureValues& FeatureValues::operator=(const FeatureValues& rhs) = default;;
+FeatureValues& FeatureValues::operator=(FeatureValues&& rhs) noexcept = default;
+
}
diff --git a/vespalib/src/vespa/vespalib/util/featureset.h b/vespalib/src/vespa/vespalib/util/featureset.h
index 3e6052400d9..5300b5faa86 100644
--- a/vespalib/src/vespa/vespalib/util/featureset.h
+++ b/vespalib/src/vespa/vespalib/util/featureset.h
@@ -155,6 +155,12 @@ struct FeatureValues {
using Value = FeatureSet::Value;
std::vector<vespalib::string> names;
std::vector<Value> values; // values.size() == names.size() * N
+ FeatureValues() noexcept;
+ FeatureValues(const FeatureValues& rhs);
+ FeatureValues(FeatureValues&& rhs) noexcept;
+ ~FeatureValues() noexcept;
+ FeatureValues& operator=(const FeatureValues& rhs);
+ FeatureValues& operator=(FeatureValues&& rhs) noexcept;
};
}