[英]What is the advantage of droppable accumulator in boost library in c++?
I've recently read the User's Guide of Boost.Accumulator
There is a chapter named "Droppable Accumulators" which illustrates how to use "accumulators that can be removed from the accumulator_set<>
".我最近阅读了
Boost.Accumulator
的用户指南,其中有一章名为“Droppable Accumulators”,它说明了如何使用“可以从accumulator_set<>
中删除的累加器”。 The whole section was talking about how it might cause trouble.整个部分都在谈论它如何可能引起麻烦。 But why do we want to use droppable accumulators?
但是为什么我们要使用可放置的累加器呢? What is the advantage of this feature?
此功能的优势是什么?
perhaps declaring accumulator_set with all possible and potentially useful features and then dropping unused ones according to end user runtime configuration to keep only required would be one of the scenarios.也许声明 accumulator_set 具有所有可能和潜在有用的功能,然后根据最终用户运行时配置删除未使用的功能以仅保留必需的将是一种情况。 see also Initialize a boost::accumulator_set at runtime
另见在运行时初始化 boost::accumulator_set
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.