folly: small_vector: emplace_back for iterator constructor (compat with std::vector)
authorLucian Grijincu <lucian@fb.com>
Thu, 10 Sep 2015 00:22:27 +0000 (17:22 -0700)
committerfacebook-github-bot-4 <folly-bot@fb.com>
Thu, 10 Sep 2015 01:20:17 +0000 (18:20 -0700)
commit9f9e6d9638c6227f4f5f1b0c35fa3122eec651a4
treefb32df1fafee92a5957f94ff15c90aa94b4a9247
parent3e6ccd5c48456a86f19e1f3022545b3a2b52786e
folly: small_vector: emplace_back for iterator constructor (compat with std::vector)

Summary: This works:
  std::vector<T*> v;
  std::vector<std::unique_ptr<T>> uv(v.begin(), v.end())

Make it work for small_vector as well.

Reviewed By: @ot, @Gownta

Differential Revision: D2426919
folly/small_vector.h
folly/test/small_vector_test.cpp