ADT: Rename argument in emplace_back_impl

Rename a functor argument in r223201 from `emplace` to `construct` to
reduce confusion.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@223212 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Duncan P. N. Exon Smith 2014-12-03 05:53:24 +00:00
parent 3c6860c8a1
commit 59c9cb75d2

View File

@ -246,10 +246,10 @@ public:
}
#else
private:
template <typename Constructor> void emplace_back_impl(Constructor emplace) {
template <typename Constructor> void emplace_back_impl(Constructor construct) {
if (LLVM_UNLIKELY(this->EndX >= this->CapacityX))
this->grow();
emplace((void *)this->end());
construct((void *)this->end());
this->setEnd(this->end() + 1);
}