SGI STL patch

Alexander Stepanov stepanov@sgi.com
Mon Oct 27 12:24:00 GMT 1997


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



More information about the Gcc mailing list