c++ - How to use unordered_map in Android? -


I'm trying to use a hash_map, which is defined in Android NDK, but warns me "exclusion "Gets:

  ndk / source / cxx-stl / gnu-libstdc ++ / 4.6 / include / ext /../ backward / backward_name. H: 33: 2: Error: # Warning: At least one of the excluded or outdated dates in this file can be removed without further notice. Instead use a non-exiting interface, instead with equivalent functionality. For a list of replacement headers and interfaces, the back_description. Consult the file. To disable the use of this warning, no-exclusion [-wire = CPP]   

and because of "Unordered_map" gnu-libstdc ++ / 4.6 / include / and gnu-libstdc + + / 4.6 / include / tr1 / also exists, I believe that there is a way to use it.

The issue is that I am not getting this. Which of the following is correct (if any):

  #include & lt; Tr1 / unordered_map.h & gt; # Include & lt; Unordered_map>   

And then, how to use it? __gnu_cxx :: unordered_map is not recognized ... and I do not know how to get this information.

If you do not want C ++11 support, you can use it with STLPort Are:

  // Here we are referring to stlport: #include & lt; Unordered_map> ... std :: tr1 :: unordered_map & lt; Int, int & gt; testing;   

This is because STLPort defines unordered_map inside the tr1 namespace, but the STLPort header does not have any / tr1 / folder.

Comments

Popular posts from this blog

excel vba - How to delete Solver(SOLVER.XLAM) code -

github - Teamcity & Git - PR merge builds - anyway to get HEAD commit hash? -

ios - Replace text in UITextView run slowly -