Precedence of operator>>()?

Precedence of operator>>()?

Post by Keith Nicho » Fri, 13 Mar 1998 04:00:00



Am I right in thinking the precedence of

    istream& operator>>(istream&, const T&)

is the same as the right shift operator?  Can anyone cite a reference?

Cheers

Keith

--
Keith Nichol                           | Address : Level 2, 175 Liverpool St,
Telstra Intelligent Network Platforms  |           Sydney 2000, Australia
                                       | Phone   : (+61) 2 9206 3429


      [ about comp.lang.c++.moderated. First time posters: do this! ]

 
 
 

Precedence of operator>>()?

Post by Oleg Zablud » Sat, 14 Mar 1998 04:00:00


: Am I right in thinking the precedence of

:     istream& operator>>(istream&, const T&)

: is the same as the right shift operator?  

Right. Moreover, precedence of all operators stays the same,
no matter how you overload them.

Oleg.
--
Life is a *ly transmitted, 100% lethal disease.


      [ about comp.lang.c++.moderated. First time posters: do this! ]

 
 
 

Precedence of operator>>()?

Post by Jerry Coff » Sun, 15 Mar 1998 04:00:00



says...

Quote:> Am I right in thinking the precedence of

>     istream& operator>>(istream&, const T&)

> is the same as the right shift operator?  Can anyone cite a reference?

Yes - precedence, associativity, etc., are unaffected by overloading.  
All that happens in the parser, prior to matching up argument types
and such to figure out what code gets generated for a specific
invocation of an operator.

One obvious reference (going from CD2) is 13.5/6.

--
    Later,
    Jerry.

The Universe is a figment of its own imagination.


      [ about comp.lang.c++.moderated. First time posters: do this! ]

 
 
 

1. Resizing a CListBox>>>>>>>>>>>>>>>>>>>>>>>>>>>

I have created a CListBox on a view...Now how can I make the listbox always
cover the entire client area of the view, even on resizing.

At the moment im overriding OnSize:-

void CMyView::OnSize(UINT nType, int cx, int cy)
{
        myListBox.MoveWindow(0,0,cx,xy,TRUE);

It doesnt do the trick. Help!!

--
================================================================================
Mr Abtar Bangar          | EMAIL ADDRESS:       |

Southbank University     |                      |  something about EVERYTHING
103 Borough Road         |                      |      but definately not    
LONDON SE1 0AA           |                      |  EVERYTHING about something'
United Kingdom.          |                      |
================================================================================

2. PowerPC/Pentium/PentiumPro comparison in c't

3. " INNOVATION INFOS + IMAGING " >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

4. CDROM on Win95

5. safe istream operator>>()

6. ****About Notes Fax Server Problem!****

7. Help, can't overload operator>>()

8. Which "vti thingies" do I need to delete to rebuild a site from scratch?

9. Setting fail state in istream::operator>>()

10. Windows 3.x printqueue >>>>>>>

11. b.template to_string<char, char_traits<char>, allocator<char> >()

12. <<<<<<Programmers Needed>>>>>>>

13. HELP >>>>>>>>>>>>> WINAPI <<<<<<<<<<<<<<<<<