STL extensions from SGI


Detailed Description

Because libstdc++-v3 based its implementation of the STL subsections of the library on the SGI 3.3 implementation, we inherited their extensions as well.

They are additionally documented in the online documentation, a copy of which is also shipped with the library source code (in .../docs/html/documentation.html). You can also read the documentation on SGI's site, which is still running even though the code is not maintained.

NB that the following notes are pulled from various comments all over the place, so they may seem stilted.


Functions


Function Documentation

const Type& __median const Type &  a,
const Type &  __b,
const Type &  c,
Compare  comp
[inline]
 

Find the median of three values using a predicate for comparison.

Parameters:
a A value.
b A value.
c A value.
comp A binary predicate.
Returns:
One of a, b or c.
If {l,m,n} is some convolution of {a,b,c} such that comp(l,m) and comp(m,n) are both true then the value returned will be m. This is an SGI extension.

Definition at line 120 of file stl_algo.h.

const Type& __median const Type &  a,
const Type &  __b,
const Type &  c
[inline]
 

Find the median of three values.

Parameters:
a A value.
b A value.
c A value.
Returns:
One of a, b or c.
If {l,m,n} is some convolution of {a,b,c} such that l<=m<=n then the value returned will be m. This is an SGI extension.

Definition at line 86 of file stl_algo.h.


Generated on Sun Jul 25 00:12:38 2004 for libstdc++ source by doxygen 1.3.7