diff options
author | Tor Egge <Tor.Egge@online.no> | 2023-04-27 13:27:16 +0200 |
---|---|---|
committer | Tor Egge <Tor.Egge@online.no> | 2023-04-27 13:27:16 +0200 |
commit | a1d8f4d8c0b6eed7f7d144b44bac97f3af9786f6 (patch) | |
tree | aa14951370c37527d3e3601d09dea6a8b482ca8c /vespalib | |
parent | c337182515133393df54f7ca4ec220010801126c (diff) |
Deinline FeatureValues constructors, destructor and assignment operators.
Diffstat (limited to 'vespalib')
-rw-r--r-- | vespalib/src/vespa/vespalib/util/featureset.cpp | 7 | ||||
-rw-r--r-- | vespalib/src/vespa/vespalib/util/featureset.h | 6 |
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; }; } |