Skip to main content
Post Closed as "Duplicate" by Samuel Liew
remove duplicate link
Source Link

Possible Duplicate:
How to find an item in a std::vector?

Is there something in <algorithm> which allows you to check if a std:: container contains something? Or, a way to make one, for example:

if(a.x == b.x && a.y == b.y)
return true;

return false;

Can this only be done with std::map since it uses keys?

Thanks

Possible Duplicate:
How to find an item in a std::vector?

Is there something in <algorithm> which allows you to check if a std:: container contains something? Or, a way to make one, for example:

if(a.x == b.x && a.y == b.y)
return true;

return false;

Can this only be done with std::map since it uses keys?

Thanks

Is there something in <algorithm> which allows you to check if a std:: container contains something? Or, a way to make one, for example:

if(a.x == b.x && a.y == b.y)
return true;

return false;

Can this only be done with std::map since it uses keys?

Thanks

Post Reopened by Samuel Liew
Post Closed as "Duplicate" by Samuel Liew
Post Reopened by Samuel Liew
replaced http://stackoverflow.com/ with https://stackoverflow.com/
Source Link
URL Rewriter Bot
URL Rewriter Bot

Possible Duplicate:
How to find an item in a std::vector?How to find an item in a std::vector?

Is there something in <algorithm> which allows you to check if a std:: container contains something? Or, a way to make one, for example:

if(a.x == b.x && a.y == b.y)
return true;

return false;

Can this only be done with std::map since it uses keys?

Thanks

Possible Duplicate:
How to find an item in a std::vector?

Is there something in <algorithm> which allows you to check if a std:: container contains something? Or, a way to make one, for example:

if(a.x == b.x && a.y == b.y)
return true;

return false;

Can this only be done with std::map since it uses keys?

Thanks

Possible Duplicate:
How to find an item in a std::vector?

Is there something in <algorithm> which allows you to check if a std:: container contains something? Or, a way to make one, for example:

if(a.x == b.x && a.y == b.y)
return true;

return false;

Can this only be done with std::map since it uses keys?

Thanks

Possible Duplicate:
How to find an item in a std::vector?

Is there something in algorithm.h<algorithm> which allows you to check if a std:: container contains something? Or, a way to make one ex, for example:

if(a.x == b.x && a.y == b.y)
return true;

return false;

canCan this only be done with std::mapstd::map since it uses keys?

Thanks

Possible Duplicate:
How to find an item in a std::vector?

Is there something in algorithm.h which allows you to check if a std:: container contains something? Or a way to make one ex:

if(a.x == b.x && a.y == b.y)
return true;

return false;

can this only be done with std::map since it uses keys?

Thanks

Possible Duplicate:
How to find an item in a std::vector?

Is there something in <algorithm> which allows you to check if a std:: container contains something? Or, a way to make one, for example:

if(a.x == b.x && a.y == b.y)
return true;

return false;

Can this only be done with std::map since it uses keys?

Thanks

insert duplicate link
Source Link
Loading
Post Closed as "exact duplicate" by James Curran, Troubadour, Joe, GManNickG, Rob Kennedy
Source Link
jmasterx
  • 54.3k
  • 99
  • 328
  • 574
Loading