Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
ブースト json ptree の欠損値にアクセスしようとしています。キーが一致しなかった場合は、戻り値を定義できるメソッドを呼び出す必要があります。戻り値を計算するには、ptree にアクセスする必要があります。例: ptree は次のとおりです: { "1": 10, "3": 30 } 返された値を補間し"2"たい20と思います。出来ますか?
{ "1": 10, "3": 30 }
"2"
20