iterator/infix: use a more descriptive tparam name
This commit is contained in:
parent
3b24e6b7e7
commit
b44fda51a3
@ -23,7 +23,7 @@ namespace cruft::iterator {
|
|||||||
/// cruft::infix_iterator<value_type> (os, ", ")
|
/// cruft::infix_iterator<value_type> (os, ", ")
|
||||||
/// );
|
/// );
|
||||||
template <
|
template <
|
||||||
typename T,
|
typename ValueT,
|
||||||
class CharT = char,
|
class CharT = char,
|
||||||
class Traits = std::char_traits<CharT>
|
class Traits = std::char_traits<CharT>
|
||||||
>
|
>
|
||||||
@ -38,8 +38,9 @@ namespace cruft::iterator {
|
|||||||
m_delimiter (_delimiter)
|
m_delimiter (_delimiter)
|
||||||
{ ; }
|
{ ; }
|
||||||
|
|
||||||
|
|
||||||
infix_iterator&
|
infix_iterator&
|
||||||
operator= (T const &value)
|
operator= (ValueT const &value)
|
||||||
{
|
{
|
||||||
if (!m_first)
|
if (!m_first)
|
||||||
m_output << m_delimiter;
|
m_output << m_delimiter;
|
||||||
@ -54,6 +55,7 @@ namespace cruft::iterator {
|
|||||||
infix_iterator& operator++ (void) { return *this; }
|
infix_iterator& operator++ (void) { return *this; }
|
||||||
infix_iterator& operator++ (int) { return *this; }
|
infix_iterator& operator++ (int) { return *this; }
|
||||||
|
|
||||||
|
|
||||||
private:
|
private:
|
||||||
bool m_first = true;
|
bool m_first = true;
|
||||||
ostream_type &m_output;
|
ostream_type &m_output;
|
||||||
|
Loading…
Reference in New Issue
Block a user