Created
January 24, 2020 12:46
-
-
Save amigo421/4ca7be8aae9c1c4f3f30a4c27e056a42 to your computer and use it in GitHub Desktop.
checked iterator type
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // checking that iterator is forward_itertaor | |
| template <class iter> | |
| using iterator_type_checked = | |
| std::is_same<typename std::iterator_traits<iter>::iterator_category, | |
| std::forward_iterator_tag>; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment