diff options
author | Arne H Juul <arnej27959@users.noreply.github.com> | 2021-03-02 07:56:16 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-02 07:56:16 +0100 |
commit | 1caedc4f1197d96b29dda8057ff057a54aff81ba (patch) | |
tree | 5128bc5459ff6a13cedfdae3b69e6fb376aa171b /vespalib | |
parent | 876ef2eae02b15a3220a9d7985ae4331348dc040 (diff) | |
parent | 1d20766f783ffb91ff6752afc4b376fe3001efea (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.h | 2 |
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> |