copy as std::pair