[Plugin] unordered_map
#7

Quote:
Originally Posted by ShapeGaz
View Post
Why you cannot use it like:
PHP Code:
 // Get int value
new map:map map_new();
map_emplace(map,"12","14");
new 
value[2];
map_find(map,"12",value,sizeof(value));
new 
intvalue strval(value);
// Emplace int value
new value[2];
format(value,sizeof(value),"%d",10); // With the key you can do the same
map_emplace(map,"test",value); 
1. I'll add to the next update
2. I'll add to the next update
3. What? Explain pls
If I have to convert every value to a string and vice-versa in PAWN why even use an unordered map?

Also it would be nice to be able to iterate through all elements.
Reply


Messages In This Thread
unordered_map - by ShapeGaz - 31.12.2017, 10:34
Re: unordered_map - by AnGeL_KRAMER - 31.12.2017, 10:40
Re: unordered_map - by ShapeGaz - 31.12.2017, 11:21
Re: unordered_map - by Yashas - 31.12.2017, 13:57
Re: unordered_map - by ShapeGaz - 31.12.2017, 14:59
Re: unordered_map - by chneubeul - 31.12.2017, 18:14
Re: unordered_map - by NaS - 31.12.2017, 18:48
Re: unordered_map - by ShapeGaz - 31.12.2017, 19:02
Re: unordered_map - by chneubeul - 31.12.2017, 19:17
Re: unordered_map - by ShapeGaz - 31.12.2017, 19:39

Forum Jump:


Users browsing this thread: 1 Guest(s)