add utf8::make_iterator helper function

This commit is contained in:
Maxime Coste 2013-06-05 19:19:49 +02:00
parent 245e68e26e
commit 43ff1909fb

View File

@ -140,8 +140,13 @@ private:
mutable Codepoint m_value = -1; mutable Codepoint m_value = -1;
}; };
template<typename InvalidPolicy = InvalidBytePolicy::Assert, typename Iterator>
utf8_iterator<Iterator, InvalidPolicy> make_iterator(Iterator it)
{
return utf8_iterator<Iterator, InvalidPolicy>{std::move(it)};
} }
} }
}
#endif // utf8_iterator_hh_INCLUDED #endif // utf8_iterator_hh_INCLUDED