This file contains 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
#include <iostream> | |
#include <string> | |
template< class ForwardIt1, class ForwardIt2 > | |
bool is_subset(ForwardIt1 first1, ForwardIt1 last1, | |
ForwardIt2 first2, ForwardIt2 last2) | |
{ | |
auto initial = first2; | |
for (; (first1 != last1) && (first2 != last2); ++first1) |