summaryrefslogtreecommitdiff
path: root/absl/crc/internal
diff options
context:
space:
mode:
authorGravatar Evan Brown <ezb@google.com>2022-11-10 13:00:02 -0800
committerGravatar Copybara-Service <copybara-worker@google.com>2022-11-10 13:00:41 -0800
commit04658377111baab53430755431b2b9b4da925e5c (patch)
tree7d8f52ce8e5493d4e186d322e738ee6c05784c2c /absl/crc/internal
parentcc143ed36913a55622411bb8be8c80f53a9ca1ea (diff)
Improve error messages when comparing btree iterators.
- Add assertions that the iterators are either (a) from the same container or (b) both default constructed. Standard says: "The domain of == for forward iterators is that of iterators over the same underlying sequence. However, value-initialized iterators may be compared and shall compare equal to other value-initialized iterators of the same type." - [reference](https://eel.is/c++draft/forward.iterators#2). - Also optimize IsEndIterator a bit. PiperOrigin-RevId: 487617518 Change-Id: Iefba5c3bc8caa93954671793e6929e22f419c298
Diffstat (limited to 'absl/crc/internal')
0 files changed, 0 insertions, 0 deletions