forked from boostorg/container
Vector performance improvements: dispatching to memcpy when possible.
[SVN r83271]
This commit is contained in:
1 parent
9b0a73fc32
commit
6acbbb6f9b
18 files changed
+781
-464
No files matched your search
@@ -830,11 +830,11 @@ class deque : protected deque_base<T, Allocator>
|
||||
if (len > size()) {
|
||||
FwdIt mid = first;
|
||||
std::advance(mid, this->size());
|
||||
boost::copy_or_move(first, mid, begin());
|
||||
boost::container::copy(first, mid, begin());
|
||||
this->insert(this->cend(), mid, last);
|
||||
}
|
||||
else{
|
||||
this->erase(boost::copy_or_move(first, last, this->begin()), cend());
|
||||
this->erase(boost::container::copy(first, last, this->begin()), cend());
|
||||
}
|
||||
}
|
||||
#endif
|
||||
@@ -1840,12 +1840,10 @@ class deque : protected deque_base<T, Allocator>
|
||||
++cur_node) {
|
||||
FwdIt mid = first;
|
||||
std::advance(mid, this->s_buffer_size());
|
||||
::boost::container::uninitialized_copy_or_move_alloc
|
||||
(this->alloc(), first, mid, *cur_node);
|
||||
::boost::container::uninitialized_copy_alloc(this->alloc(), first, mid, *cur_node);
|
||||
first = mid;
|
||||
}
|
||||
::boost::container::uninitialized_copy_or_move_alloc
|
||||
(this->alloc(), first, last, this->members_.m_finish.m_first);
|
||||
::boost::container::uninitialized_copy_alloc(this->alloc(), first, last, this->members_.m_finish.m_first);
|
||||
}
|
||||
BOOST_CATCH(...){
|
||||
this->priv_destroy_range(this->members_.m_start, iterator(*cur_node, cur_node));
|
||||
|
||||
Reference in new issue
Block a user