Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.c++ > #6671

base_ostream template arguments

Path csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!news.glorb.com!transit3.readnews.com!news-out.readnews.com!news-xxxfer.readnews.com!panix!not-for-mail
From ruben safir <ruben@mrbrklyn.com>
Newsgroups comp.lang.c++
Subject base_ostream template arguments
Date Mon, 13 Jun 2011 04:40:57 +0000 (UTC)
Organization PANIX Public Access Internet and UNIX, NYC
Lines 15
Message-ID <it44cp$ioc$5@reader1.panix.com> (permalink)
NNTP-Posting-Host www2.mrbrklyn.com
Mime-Version 1.0
Content-Type text/plain; charset=UTF-8
Content-Transfer-Encoding 8bit
X-Trace reader1.panix.com 1307940057 19212 96.57.23.82 (13 Jun 2011 04:40:57 GMT)
X-Complaints-To abuse@panix.com
NNTP-Posting-Date Mon, 13 Jun 2011 04:40:57 +0000 (UTC)
User-Agent Pan/0.133 (House of Butterflies)
Xref x330-a1.tempe.blueboxinc.net comp.lang.c++:6671

Show key headers only | View raw


The base_ostream template is defined as follows (according to Struostrup)


template<class Ch, class Tr = char_traits<Ch> >
class std::basic_ostream : virtual public basic_ios<Ch, Tr > {
public:
	virtual ~basic_ostream();
//...
};


since Tr is always defined as a function of Ch, why was it necessary for 
two template parameters?

Ruben

Back to comp.lang.c++ | Previous | Next — Next in thread | Find similar | Unroll thread


Thread

base_ostream template arguments ruben safir <ruben@mrbrklyn.com> - 2011-06-13 04:40 +0000
  Re: base_ostream template arguments Öö Tiib <ootiib@hot.ee> - 2011-06-12 22:18 -0700
    Re: base_ostream template arguments ruben safir <ruben@mrbrklyn.com> - 2011-06-13 06:08 +0000
    Re: base_ostream template arguments ruben safir <ruben@mrbrklyn.com> - 2011-06-13 06:38 +0000
      Re: base_ostream template arguments Öö Tiib <ootiib@hot.ee> - 2011-06-13 01:45 -0700
  Re: base_ostream template arguments Saeed Amrollahi <amrollahi.saeed@gmail.com> - 2011-06-12 23:14 -0700
    Re: base_ostream template arguments ruben safir <ruben@mrbrklyn.com> - 2011-06-13 06:32 +0000
      Re: base_ostream template arguments Saeed Amrollahi <amrollahi.saeed@gmail.com> - 2011-06-13 00:08 -0700
        Re: base_ostream template arguments ruben safir <ruben@mrbrklyn.com> - 2011-06-13 03:17 -0400
        Re: base_ostream template arguments mrbrklyn <ceo.brooklyn@gmail.com> - 2011-06-13 12:45 -0700

csiph-web