Created
April 27, 2018 14:00
-
-
Save deque-blog/8eafeeff5200c846d9fc5255c64af55c to your computer and use it in GitHub Desktop.
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
template<typename Iterator> | |
struct IteratorTraits {}; | |
template<> | |
struct IteratorTraits<LinkedListIterator> | |
{ | |
using iterator_category = std::bidirectional_iterator_tag; | |
}; | |
template<> | |
struct IteratorTraits<VectorIterator> | |
{ | |
using iterator_category = std::random_access_iterator_tag; | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment