This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: SGI STL patch


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]