boost::algorithm::find_format_all_copy — 通用的全部替换算法。
// In header: <boost/algorithm/string/find_format.hpp> template<typename OutputIteratorT, typename RangeT, typename FinderT, typename FormatterT> OutputIteratorT find_format_all_copy(OutputIteratorT Output, const RangeT & Input, FinderT Finder, FormatterT Formatter); template<typename SequenceT, typename FinderT, typename FormatterT> SequenceT find_format_all_copy(const SequenceT & Input, FinderT Finder, FormatterT Formatter);