Discussion:
I can't iterate through std::unordered_map
(too old to reply)
Gospodin Settler
2018-09-16 20:29:02 UTC
Permalink
So my simple code is not working. I'm just trying to iterate through
unordered_map but the IDE Android studio is saying "std::unordered_map<int,
int> is not a valid range type."

std::unordered_map<int, int> inters;
for (auto iterater : *inters* /*<= std::unordered_map<int, int> is not a valid range type*/) {

}
--
You received this message because you are subscribed to the Google Groups "android-ndk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-ndk+***@googlegroups.com.
To post to this group, send email to android-***@googlegroups.com.
Visit this group at https://groups.google.com/group/android-ndk.
To view this discussion on the web visit https://groups.google.com/d/msgid/android-ndk/e1abe819-fe8f-4984-a5a0-9e00ef19a368%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
'Dan Albert' via android-ndk
2018-09-17 17:24:00 UTC
Permalink
Does it build? If it builds and it's just the IDE wrongly incorrectly
marking it as wrong then you should file a bug for Android Studio over at
http://b.android.com.
Post by Gospodin Settler
So my simple code is not working. I'm just trying to iterate through
unordered_map but the IDE Android studio is saying "std::unordered_map<int,
int> is not a valid range type."
std::unordered_map<int, int> inters;
for (auto iterater : *inters* /*<= std::unordered_map<int, int> is not a valid range type*/) {
}
--
You received this message because you are subscribed to the Google Groups
"android-ndk" group.
To unsubscribe from this group and stop receiving emails from it, send an
Visit this group at https://groups.google.com/group/android-ndk.
To view this discussion on the web visit
https://groups.google.com/d/msgid/android-ndk/e1abe819-fe8f-4984-a5a0-9e00ef19a368%40googlegroups.com
<https://groups.google.com/d/msgid/android-ndk/e1abe819-fe8f-4984-a5a0-9e00ef19a368%40googlegroups.com?utm_medium=email&utm_source=footer>
.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "android-ndk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-ndk+***@googlegroups.com.
To post to this group, send email to android-***@googlegroups.com.
Visit this group at https://groups.google.com/group/android-ndk.
To view this discussion on the web visit https://groups.google.com/d/msgid/android-ndk/CAFVaGhvGXpNkXJRYZt0NoV2fks96eC-cCV9vxathy_x_ss0a_Q%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Loading...