Loading…
|
Translation uploaded |
|
|
String added in the repository |
|
Flags
safe-html, strict-same
Loading…
|
Translation uploaded |
|
|
String added in the repository |
|
Even though it acts as a container, `boost::concurrent_flat_map` does not model the standard尽管它充当容器的角色,boost::concurrent_flat_map 并未遵循标准 C++ 的 https://en.cppreference.com/w/cpp/named_req/Container[Container^]concept. In particular, iterators and associated operations (`begin`, `end`, etc.) are not provided. Element access and modification are done through user-provided _visitation functions_ that are passed to `concurrent_flat_map` operations where they are executed internally in a controlled fashion. Such visitation-based API allows for low-contention concurrent usage scenarios.概念。特别地,它不提供迭代器及相关操作(例如 begin、end 等)。元素的访问和修改是通过用户提供的 访问函数 来完成的,这些函数被传递给 concurrent_flat_map 的操作,并以受控的方式在内部执行。这种基于访问的 API 能够实现低竞争并发的使用场景。