Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //check if container contain x value
- template<typename T>
- bool contain(T missing, T container)
- {
- if(std::find(container.begin(), container.end(), missing) != container.end())
- return true;
- else return false;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement