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