From 43ff1909fbc242499ce9b529a34e7ade02c3b338 Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Wed, 5 Jun 2013 19:19:49 +0200 Subject: [PATCH] add utf8::make_iterator helper function --- src/utf8_iterator.hh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/utf8_iterator.hh b/src/utf8_iterator.hh index d41bb397f..20027aa3e 100644 --- a/src/utf8_iterator.hh +++ b/src/utf8_iterator.hh @@ -140,8 +140,13 @@ private: mutable Codepoint m_value = -1; }; +template +utf8_iterator make_iterator(Iterator it) +{ + return utf8_iterator{std::move(it)}; } } +} #endif // utf8_iterator_hh_INCLUDED