|
-
Mar 27th, 2002, 12:43 PM
#1
Thread Starter
transcendental analytic
[Resolved]item not in map
how do you check if an item is not in a map?
Last edited by kedaman; Mar 28th, 2002 at 07:13 AM.
Use  
writing software in C++ is like driving rivets into steel beam with a toothpick.
writing haskell makes your life easier:
reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.
-
Mar 27th, 2002, 01:42 PM
#2
PowerPoster
Cycle through it comparing each instance?
Gentile or Jew,
O you who turn the wheel and look to windward,
Consider Phlebas, who was once handsome and tall as you...
-
Mar 27th, 2002, 01:50 PM
#3
Thread Starter
transcendental analytic
lol, would defeat the purpose of a map
Use  
writing software in C++ is like driving rivets into steel beam with a toothpick.
writing haskell makes your life easier:
reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.
-
Mar 27th, 2002, 02:17 PM
#4
Monday Morning Lunatic
map_object.find(key)
I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
-- Linus Torvalds
-
Mar 27th, 2002, 03:02 PM
#5
Thread Starter
transcendental analytic
parksie, i did that, and then compared it with map_object.end() but it didn't work
Use  
writing software in C++ is like driving rivets into steel beam with a toothpick.
writing haskell makes your life easier:
reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.
-
Mar 27th, 2002, 03:03 PM
#6
Try:
map_object.contains(oElement)
-
Mar 27th, 2002, 03:49 PM
#7
Thread Starter
transcendental analytic
I want to have the iterator as well, without looking it up twice
Use  
writing software in C++ is like driving rivets into steel beam with a toothpick.
writing haskell makes your life easier:
reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|