lrucache11 icon indicating copy to clipboard operation
lrucache11 copied to clipboard

may not to use std::move to not ref variable

Open superzmy opened this issue 2 years ago • 0 comments

KeyValuePair(K k, V v) : key(std::move(k)), value(std::move(v)) {}

to

template<typename KK, typename VV> KeyValuePair(KK&& k, VV&& v) : key(std::forward<KK>(k)), value(std::forward<VV>(v)) {}

superzmy avatar Aug 23 '22 02:08 superzmy