18 template <
class T,
class charT =
char,
class traits = std::
char_traits<
charT>>
26 :
public std::iterator<std::output_iterator_tag, void, void, void, void>
29 #if defined(__clang__) || (__GNUC__ > 9) 30 using iterator_category = std::output_iterator_tag;
33 std::basic_ostream<charT, traits> *
os;
46 infix_ostream_iterator<T, charT, traits> &
operator=(T
const & item)
56 infix_ostream_iterator<T, charT, traits> &
operator*() {
return *
this; }
57 infix_ostream_iterator<T, charT, traits> &
operator++() {
return *
this; }
58 infix_ostream_iterator<T, charT, traits> &
operator++(
int) {
return *
this; }
std::basic_ostream< charT, traits > * os
std::basic_ostream< charT, traits > ostream_type
infix_ostream_iterator(ostream_type &s)
infix_ostream_iterator< T, charT, traits > & operator=(T const &item)
infix_ostream_iterator< T, charT, traits > & operator*()
infix_ostream_iterator< T, charT, traits > & operator++()
class infix_ostream_iterator if defined(__GNUC__) &&!defined(__clang__) &&(__GNUC__<
GCC9 currently hits a "no type named 'value_type'" error during build if this is removed and iterator...