[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Where is the definitions of <iostream> functions?
From: |
Thomas Maeder |
Subject: |
Re: Where is the definitions of <iostream> functions? |
Date: |
Fri, 30 Nov 2007 17:54:43 +0100 |
User-agent: |
Gnus/5.1006 (Gnus v5.10.6) XEmacs/21.4 (Jumbo Shrimp, linux) |
"PengYu.UT@gmail.com" <PengYu.UT@gmail.com> writes:
> I'm wondering where the definitions of the functions in <iostream>
> are in GCC. I can not find them in GCC source code. Could you help
> me?
>
> int i
> std::istream is;
> is >> i; // For example, I want the definition of this function (>>).
Side note: the class template basic_istream, of which this operator is
a member, isn't declared in <iostream>, but in <istream>.
On my Linux box, its implementation is in
/usr/include/c++/4.1.2/bits/istream.tcc, starting at line 187:
template<typename _CharT, typename _Traits>
basic_istream<_CharT, _Traits>&
basic_istream<_CharT, _Traits>::
operator>>(int& __n)
etc.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: Where is the definitions of <iostream> functions?,
Thomas Maeder <=