Код: Выделить всё
// build string requiring a bunch of processing
std::wstring xmlstr=xml->GetXml();
{
std::lock_guard guard(my_mutex);
m_deque.push_back(std::move(xmlstr)); //
Подробнее здесь: [url]https://stackoverflow.com/questions/79419647/will-adding-stdstring-items-to-stddeque-with-stdmove-be-more-efficent[/url]