Mark vector::operator[] and front/back as noexcept. We already do this for string...
authorMarshall Clow <mclow.lists@gmail.com>
Fri, 15 Mar 2019 00:29:35 +0000 (00:29 +0000)
committerMarshall Clow <mclow.lists@gmail.com>
Fri, 15 Mar 2019 00:29:35 +0000 (00:29 +0000)
commit5bcca9ffd167a50dafa2c3958b36e498ee71ad68
treeacd2ea0df1089cbfada6511793b6280ce95c031f
parentf2192b204ff49561cc73fe06a76216f3cab39d84
Mark vector::operator[] and front/back as noexcept. We already do this for string and string_view. This should give better codegen inside of noexcept functions. Add tests for op[]/front/back/at, because apparently we had none.

llvm-svn: 356224
libcxx/include/vector
libcxx/test/libcxx/debug/containers/db_sequence_container_iterators.pass.cpp
libcxx/test/std/containers/sequences/vector/access.pass.cpp [new file with mode: 0644]