This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: SGI STL patch
- To: Oleg Krivosheev <kriol at fnal dot gov>
- Subject: Re: SGI STL patch
- From: Alexander Stepanov <stepanov at sgi dot com>
- Date: Mon, 27 Oct 1997 12:24:07 -0800
- CC: stl at sgi dot com, Jason Merrill <jason at cygnus dot com>, egcs at cygnus dot com, drepper at cygnus dot com
- Organization: Silicon Graphics
- References: <Pine.GSO.3.96.971027124123.12592B-100000@drabble>
An element is an identity element for a given operation.
For example:
identity_element(plus<int>) returns 0,
while
identity_element(multiplies<int>) returns 1.
Take a look at the code of power. It should sufficiently illustrate the
point.
Oleg Krivosheev wrote:
> i don't understand why identity_element
> should depend on concat_fn at all.
> Can someone put give a hint why
> it's declared in such a way?
> IMHO, it should be fixed.
>
> regards
>
> OK
--
Alexander Stepanov
stepanov@sgi.com