MCPcopy Create free account
hub / github.com/FirebirdSQL/firebird / priv_insert_forward_range

Function priv_insert_forward_range

extern/boost/boost/container/vector.hpp:2817–2832  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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)

Callers

nothing calls this directly

Calls 3

to_raw_pointerFunction · 0.85
iteratorClass · 0.50
capacityMethod · 0.45

Tested by

no test coverage detected