我想使用算法库中的std::fill函数来填充该对的第二部分中的'-‘。这有可能实现吗?#include <algorithm>int main() std::map<int, unsigned char> board(10);
//What I want the std::fill to do the equivalent of
而以前,一个人需要做一些类似的事情... auto v =v至少,我认为这是可能的,而且可能是std::views::values的预期用例。我最近发现clang-14/13/12与gcc-12/11/10和msvc-19.32 ()相比没有编译第二个版本。
我在这里错过了什么?上面的代码是有效的C++20,