josephus 相关问题


如何使用 std::move_iterator 从向量中删除元素?

这是一个 Josephus 排列问题,它是通过使用 std::move() 解决的,但现在我必须切换到使用 std::move_iterator (通过使用 std::make_move_iterator()) 但是,这不能编译:


© www.soinside.com 2019 - 2024. All rights reserved.