Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- template <class T>
- bool x(T y, unsigned int count, ...)
- {
- va_list v;
- va_start(v, count);
- for (unsigned int i = 0; i < count; i++)
- {
- T arg = va_arg(v, T);
- if (y == arg)
- {
- va_end(v);
- return true;
- }
- }
- va_end(v);
- return false;
- }
Add Comment
Please, Sign In to add comment