Add rvalue-reference-accepting `entry_t` constructor for `pool`.

This commit is contained in:
Alberto Gonzalez 2020-04-20 05:37:10 +00:00
parent 95b94ad19b
commit ecaa892e35
No known key found for this signature in database
GPG Key ID: 8395A8BA109708B2
1 changed files with 1 additions and 0 deletions

View File

@ -642,6 +642,7 @@ protected:
entry_t() { }
entry_t(const K &udata, int next) : udata(udata), next(next) { }
entry_t(K &&udata, int next) : udata(std::move(udata)), next(next) { }
};
std::vector<int> hashtable;