Skip to content

Commit 26a09a0

Browse files
committed
[iterator.ostream.joiner] Reorder constructors in synopsis.
Also use injected-class-name and typedef to de-clutter. Fixes cplusplus#53.
1 parent 4c96a60 commit 26a09a0

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

iterator.html

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -46,24 +46,24 @@ <h1>Class template <code>ostream_joiner</code></h1>
4646
public:
4747
typedef charT char_type;
4848
typedef traits traits_type;
49-
typedef basic_ostream&lt;charT,traits&gt; ostream_type;
49+
typedef basic_ostream&lt;charT, traits&gt; ostream_type;
5050
typedef output_iterator_tag iterator_category;
5151
typedef void value_type;
5252
typedef void difference_type;
5353
typedef void pointer;
5454
typedef void reference;
5555

56-
ostream_joiner(ostream_type&amp; s, DelimT&amp;&amp; delimiter);
5756
ostream_joiner(ostream_type&amp; s, const DelimT&amp; delimiter);
57+
ostream_joiner(ostream_type&amp; s, DelimT&amp;&amp; delimiter);
5858
template&lt;typename T&gt;
59-
ostream_joiner&lt;DelimT, charT,traits&gt;&amp; operator=(const T&amp; value);
60-
ostream_joiner&lt;DelimT, charT,traits&gt;&amp; operator*();
61-
ostream_joiner&lt;DelimT, charT,traits&gt;&amp; operator++();
62-
ostream_joiner&lt;DelimT, charT,traits&gt;&amp; operator++(int);
59+
ostream_joiner&amp; operator=(const T&amp; value);
60+
ostream_joiner&amp; operator*();
61+
ostream_joiner&amp; operator++();
62+
ostream_joiner&amp; operator++(int);
6363
private:
64-
basic_ostream&lt;charT,traits&gt;* out_stream; <i>// exposition only</i>
65-
DelimT delim; <i>// exposition only</i>
66-
bool first_element; <i>// exposition only</i>
64+
ostream_type* out_stream; <i>// exposition only</i>
65+
DelimT delim; <i>// exposition only</i>
66+
bool first_element; <i>// exposition only</i>
6767
};
6868
} // inline namespace fundamentals_v2
6969
} // namespace experimental

0 commit comments

Comments
 (0)