- static inline void
- derefToCache(std::pair<F, S>* mem, const dynamic::const_item_iterator& it) {
- new (mem) std::pair<F, S>(
- convertTo<F>(it->first), convertTo<S>(it->second)
- );
+ static inline void derefToCache(
+ Optional<std::pair<F, S>>* mem,
+ const dynamic::const_item_iterator& it) {
+ mem->emplace(convertTo<F>(it->first), convertTo<S>(it->second));