UNISTDX_IT_INTERSPERSE_ITERATOR
template <class T, class Delim = const char*, class Ch = char, class Tr = std::char_traits<Ch>>
class sys::intersperse_iterator

Iterator that intersperses output values by specified delimiter.

T
element type

Delim
delimiter type

Ch
character type

Tr
character traits type

  • The type of delimiter can be set via template parameter.

Base classes
  • public std::iterator
Types
  • using ostream_type = std::basic_ostream< Ch, Tr >

    Output stream type.

  • using traits_type = Tr

    Character traits type.

  • using char_type = Ch

    Character type.

  • using delim_type = Delim

    Delimiter type.

  • using object_type = T

    Object type.

Methods