Skip to content

Instantly share code, notes, and snippets.

@picanumber
Last active July 8, 2020 21:23
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 picanumber/13a31c24352a9916ae1c7ecaf960f0f5 to your computer and use it in GitHub Desktop.
Save picanumber/13a31c24352a9916ae1c7ecaf960f0f5 to your computer and use it in GitHub Desktop.
Usage example of the type index predicate
type_index<int, std::tuple<char, int, float>>::value;
// Our type^^^ is found at index ^^^ 1 of our tuple
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment