iterator/infix: style

This commit is contained in:
Danny Robson 2019-06-20 16:31:10 +10:00
parent b44fda51a3
commit 9243f259e2

View File

@ -74,9 +74,12 @@ namespace cruft::iterator {
std::ostream& std::ostream&
operator<< (std::ostream &os, const infix_t<ContainerT,CharT> &val) operator<< (std::ostream &os, const infix_t<ContainerT,CharT> &val)
{ {
std::copy (std::cbegin (val._container), std::copy (
std::cend (val._container), std::cbegin (val._container),
infix_iterator<typename ContainerT::value_type> (os, val._delimiter)); std::cend (val._container),
infix_iterator<typename ContainerT::value_type> (os, val._delimiter)
);
return os; return os;
} }