Skip to content

Instantly share code, notes, and snippets.

@deque-blog
Created October 6, 2017 10:51
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 deque-blog/638d64f69c06ccc19ecc925ae0a10416 to your computer and use it in GitHub Desktop.
Save deque-blog/638d64f69c06ccc19ecc925ae0a10416 to your computer and use it in GitHub Desktop.
template<typename T>
void f(Container<T> const& cont)
{
typename Container<T>::const_iterator it = ...; // OK, const_iterator refers to a type
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment