iterator: add make_infix example

This commit is contained in:
Danny Robson 2018-01-26 14:05:21 +11:00
parent d206b316a9
commit f9a202877a

View File

@ -146,6 +146,8 @@ namespace util {
/// the given delimiter.
///
/// reduces boilerplate code required to output lists of things
///
/// std::cout << util::make_infix (container) << '\n';
template <typename ContainerT, typename CharT = char>
auto
make_infix (const ContainerT &_container, const CharT *_delimiter = ", ")