Skip to content

Instantly share code, notes, and snippets.

@Mischa-Alff
Created July 11, 2014 10:22
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 Mischa-Alff/663c52b0f7f4338ffb56 to your computer and use it in GitHub Desktop.
Save Mischa-Alff/663c52b0f7f4338ffb56 to your computer and use it in GitHub Desktop.
namespace std
{
template <typename T, typename Y> T* begin(std::pair<T*, Y> const& p){ return p.first; }
template <typename T, typename Y> T* end(std::pair<T*, Y> const& p){ return p.second*sizeof(p.first); }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment