summaryrefslogtreecommitdiffstats
path: root/vespalib
diff options
context:
space:
mode:
authorArne H Juul <arnej27959@users.noreply.github.com>2021-03-02 07:56:16 +0100
committerGitHub <noreply@github.com>2021-03-02 07:56:16 +0100
commit1caedc4f1197d96b29dda8057ff057a54aff81ba (patch)
tree5128bc5459ff6a13cedfdae3b69e6fb376aa171b /vespalib
parent876ef2eae02b15a3220a9d7985ae4331348dc040 (diff)
parent1d20766f783ffb91ff6752afc4b376fe3001efea (diff)
Merge pull request #16723 from vespa-engine/arnej/use-small-vector-more-places
Arnej/use small vector more places
Diffstat (limited to 'vespalib')
-rw-r--r--vespalib/src/vespa/vespalib/util/small_vector.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/vespalib/src/vespa/vespalib/util/small_vector.h b/vespalib/src/vespa/vespalib/util/small_vector.h
index 9cbc10951cf..568122f562a 100644
--- a/vespalib/src/vespa/vespalib/util/small_vector.h
+++ b/vespalib/src/vespa/vespalib/util/small_vector.h
@@ -208,6 +208,8 @@ public:
emplace_back(std::forward<Args>(args)...);
return *this;
}
+ void push_back(const T &obj) { emplace_back(obj); }
+ void push_back(T &&obj) { emplace_back(std::move(obj)); }
};
template <typename T, size_t N, size_t M>