| 2815 | |
| 2816 | template <class InsertionProxy> |
| 2817 | BOOST_CONTAINER_FORCEINLINE iterator priv_insert_forward_range |
| 2818 | (const pointer &pos, const size_type n, const InsertionProxy insert_range_proxy) |
| 2819 | { |
| 2820 | BOOST_ASSERT(this->m_holder.capacity() >= this->m_holder.m_size); |
| 2821 | T *const p = boost::movelib::to_raw_pointer(pos); |
| 2822 | //Check if we have enough memory or try to expand current memory |
| 2823 | if (BOOST_LIKELY(n <= (this->m_holder.capacity() - this->m_holder.m_size))){ |
| 2824 | //Expand forward |
| 2825 | this->priv_insert_forward_range_expand_forward |
| 2826 | (p, n, insert_range_proxy, dtl::bool_<dtl::is_single_value_proxy<InsertionProxy>::value>()); |
| 2827 | return iterator(pos); |
| 2828 | } |
| 2829 | else{ |
| 2830 | return this->priv_insert_forward_range_no_capacity(p, n, insert_range_proxy, alloc_version()); |
| 2831 | } |
| 2832 | } |
| 2833 | |
| 2834 | template <class U> |
| 2835 | void priv_resize(const size_type new_size, const U &u, version_0) |
nothing calls this directly
no test coverage detected