This is an archive of the discontinued LLVM Phabricator instance.

[libc++] std::map: use throw_out_of_range()
Needs ReviewPublic

Authored by PetteriAimonen on Dec 5 2017, 5:53 AM.

Details

Summary

Previously std::map ignored out-of-bounds access when exceptions were
disabled. Other containers such as std::vector use throw_out_of_range()
which will terminate the program if exceptions are disabled.

Diff Detail

Event Timeline

PetteriAimonen created this revision.Dec 5 2017, 5:53 AM