是否有任何技术/概念上的原因boost::circular_buffer不支持移动赛门铁克?

Is there any technical/conceptual reason boost::circular_buffer does not support move symantics?

本文关键字:circular buffer 不支持 赛门铁克 移动 boost 技术 任何 概念上 是否      更新时间:2023-10-16

我想用unique_ptrs填充boost::circular_buffer,但我没有找到任何"emplace"函数或任何&&公共接口中任何函数中的参数。有没有什么特别的原因circular_buffer不能支持移动,我错过了?

多亏https://svn.boost.org/trac/boost/ticket/7888现在在Boost中实现了。似乎最初的实现是在1.55中,在1.57中修复了一些编译器警告。

但是,在Boost 1.63中仍然不支持emplace(), emplace_front()emplace_back()