delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/08/14/08:48:16

Message-Id: <1.5.4.32.19970814124817.0069221c@dce03.ipt.br>
Mime-Version: 1.0
Date: Thu, 14 Aug 1997 09:48:17 -0300
To: ao950 AT FreeNet DOT Carleton DOT CA (Paul Derbyshire), djgpp AT delorie DOT com
From: Cesar Scarpini Rabak <csrabak AT dce03 DOT ipt DOT br>
Subject: Re: C++ overloaded operators and operator preceedence

At 07:53 12/08/97 GMT, Paul Derbyshire wrote:
>
>
>What exactly is the list of operators you can overload? As in, what
>combinations of nonalphabetic symbols can be used as operators? It'd be
>nice to have a full list. My C++ documentations don't specify, they say
>how to overload operators, and so forth, but don't list the symbols or
>symbol pairs that can be used legitimately as operators, as in, what is
>allowed in place of ?? in:
>
>friend vector &operator?? (vector &a, vector &b);

Grab a copy of "The C++ Programming Language", 2nd Ed. by Bjarne Stroustrup
and read the chpater seven of it. Has all you want to know about overloading.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Cesar Scarpini Rabak                      E-mail: csrabak AT ipt DOT br
DME/ASC                                   Phone: 55-11-268-3522 Ext.350
IPT - Instituto de Pesquisas Tecnologicas Fax:   55-11-268-5996
Av. Prof. Almeida Prado, 532.  Sao Paulo - SP 05508-901 BRAZIL
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019