lrucache11
lrucache11 copied to clipboard
may not to use std::move to not ref variable
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)) {}