boost::unicode::locale_encode
// In header: <boost/unicode/utf.hpp> template<typename Range, typename OutputIterator, typename... T> OutputIterator locale_encode(const Range & range, OutputIterator out, const T & ...);
Eagerly evaluates boost::unicode::locale_encoder until the whole input range range has been treated, copying the result to out and returning the past-the-end output iterator.
boost::unicode::locale_encoder
range
out