Skip to content

Instantly share code, notes, and snippets.

@asarium
Created August 9, 2016 18:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save asarium/0f2c4db8dd69bbbf663ea1daeacb6382 to your computer and use it in GitHub Desktop.
Save asarium/0f2c4db8dd69bbbf663ea1daeacb6382 to your computer and use it in GitHub Desktop.
template<typename TIter>
flagset<T>& set_multiple(TIter begin, TIter end) {
auto current = begin;
while(current != end)
{
set(*current, true);
current = std::next(current);
}
return *this;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment