我知道,ValueIterator
JsonCPP 不能直接用于标准 STL 算法。但是是否有一些“间接”的方式在 STL 算法中使用它(可能通过Boost.Iterator或类似的东西)?我想要以下内容:
Json::Value root = getJson(); //came from outside
std::vector<Json::Value> vec;
std::copy
( make_some_smart_iterator(...) // some iterator produced with start of root
, make_some_smart_iterator(...) // some iterator produced with end of root
, std::back_inserter(vec)
);