IT Community - Software Programming, Web Development and Technical Support

What are the types of std::cin and std::cout?

This is a discussion on What are the types of std::cin and std::cout? within the C and C++ Programming forums, part of the Software Development category; std::basic_istream<char, std::char_traits<char> > and cout boils down to: std::basic_ostream<char, std::...


Go Back   IT Community - Software Programming, Web Development and Technical Support > Software Development > C and C++ Programming

Register FAQ Members List Calendar Mark Forums Read
  #1 (permalink)  
Old 10-30-2007, 12:37 PM
ragavraj ragavraj is offline
D-Web Programmer
 
Join Date: Feb 2007
Posts: 92
ragavraj is on a distinguished road
Default What are the types of std::cin and std::cout?

std::basic_istream<char, std::char_traits<char> >

and cout boils down to:

std::basic_ostream<char, std::char_traits<char> >
The longer answer shows the connection by following some standard typedefs and templates. First,
cin and cout have type std::istream and std:: ostream, respectively. In turn, those are
typdef'd as std::basic_istream<char> and std::basic_ostream<char>. Finally, after
accounting for the default template arguments, we get the above.
Note: If you are using a prestandard implementation of the iostreams subsystem, you might still see
intermediate classes, such as istream_with_assign. Those classes do not appear in the standard.
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Types of RAM srikumar_l Computer Hardware 3 01-16-2008 04:26 AM
How many types of Actions are there in QTP? devarajan.v Software Testing 1 10-30-2007 03:42 AM
How many types of authentication modes are there and what are the Types.... Archer ASP and ASP.NET Programming 1 07-25-2007 03:48 AM
What are the different types of polymorphism? Sabari C and C++ Programming 1 07-24-2007 05:04 AM
Firewall Types ragavraj Server Management 0 07-17-2007 09:55 AM


All times are GMT -7. The time now is 09:10 PM.


Copyright ©2004 - 2007, DiscussWeb. All Rights Reserved.

SEO by vBSEO 3.0.0