Array template class based on Shared.
More...
#include "base/types.hh"
Go to the source code of this file.
Detailed Description
Array template class based on Shared.
- LastChangedDate:
- 2011-04-23 21:07:07 -0400 (Sat, 23 Apr 2011)
- Author:
- Jim E. Brooks http://www.palomino3d.org
*
* These arrays are very specialized and have both advantaes and disadvantages.
*
* PTR() guidelines:
* -----------------
* PTR() has limited uses.
* Acceptable uses are inside frequent functions that use PTR() in their own scope.
* PTR() opens the pitfall of dangling pointers.
* Never store (or pass to a function that may store) what PTR() returns.
* Be sure that what PTR() returned isn't still used after its object was destroyed.
*
* Coding notes:
* -------------
* if ( a > b ) // problem is that operator>() is rarely defined
* if ( not (a < b) ) // WRONG: that's >=
* if ( b < a ) // right: swapping operands of < is equivalent to >
*
*