Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Edited by NavBot (vkp) v1.0

...

This rule appears in the Java Secure Coding Standard as MET14-J. Follow the general contract when implementing the compareTo method.

...

Bibliography

Wiki Markup
\[[Meyers 01|AA. Bibliography#Meyers 01]\] Item 21: Always have comparison functions return false for equal values.
\[[Sutter 05|AA. Bibliography#Sutter 05]\] Item 83: Use a checked STL implementation.
\[[ISO/IEC 14882-2003|AA. Bibliography#ISO/IEC 14882-2003]\] Section 24: Iterators Library.

...

ARR34ARR39-CPP. Use Valid Iterator Ranges      VOID 14. Templates Do not treat arrays polymorphically      06. Arrays and the STL (STLARR)      49. Miscellaneous (MSC)ARR41-CPP. A container's allocator should never have a data field that is not static