small_vector exception safety, part 2
authorNicholas Ormrod <njormrod@fb.com>
Mon, 12 May 2014 18:02:00 +0000 (11:02 -0700)
committerDave Watson <davejwatson@fb.com>
Tue, 20 May 2014 19:53:58 +0000 (12:53 -0700)
commit278a1f7dbb4c8f938114cf550c0a07bcdda11161
tree64326a32c8615ce1966d8d1a508105d8e2acb48e
parent9a51965bda6202fc8765e8869ef5df06d2df705b
small_vector exception safety, part 2

Summary:
small_vector is now object-exception safe for all container
functions, except for input-iterators.

That's a bold claim; probably incorrect. At the very least, it passes
the same test suite as std::vector and fbvector.

Aside: Clearly, no one uses erase(q1, q2) in the wild.

Facebook: Nothing special.

Test Plan:
fbconfig -r folly && fbmake runtests
fbconfig -r experimental/njormrod/stltest && fbmake runtests

Reviewed By: andrei.alexandrescu@fb.com

FB internal diff: D1319787
folly/small_vector.h