-
-
Notifications
You must be signed in to change notification settings - Fork 6.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sub-array to vector or map object? #1870
Comments
Here is the way to store the result in std::map.
|
Similar to @sonulohani solution, here is a working example without the use of BTW, is there any reason to avoid that? Using |
@sonulohani thank you for this solution. Sent from my HUAWEI GR5 2017 using FastHub |
The return value of |
Hi, how do I store the result of
?? flags = parsed.at("flags");
Into a std::map or std::vector so that I can loop them.
With this
.json
file:Specifically i want to for-loop on the ?? return type and have access to the strings (i.e "Ph", "En", etc) and the associated values
I don't want to use
auto
Sent from my HUAWEI GR5 2017 using FastHub
The text was updated successfully, but these errors were encountered: