Skip to content

Instantly share code, notes, and snippets.

@stryku
Last active March 29, 2017 07:25
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 stryku/dd4e1d638ca07a6e3cef6c2f1b5426bf to your computer and use it in GitHub Desktop.
Save stryku/dd4e1d638ca07a6e3cef6c2f1b5426bf to your computer and use it in GitHub Desktop.
template <size_t ...rest_of_values>
struct starts_with_123_impl<values_container<1, 2, 3, rest_of_values...>>
{
static constexpr bool value = true;
};
template <size_t ...values>
struct starts_with_123_impl<values_container<values...>>
{
static constexpr bool value = false;
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment