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

Function insert

extern/boost/boost/container/vector.hpp:2007–2024  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2005 #if !defined(BOOST_CONTAINER_DOXYGEN_INVOKED)
2006 template <class FwdIt>
2007 BOOST_CONTAINER_FORCEINLINE iterator insert(const_iterator pos, FwdIt first, FwdIt last
2008 , typename dtl::disable_if_or
2009 < void
2010 , dtl::is_convertible<FwdIt, size_type>
2011 , dtl::is_input_iterator<FwdIt>
2012 >::type * = 0
2013 )
2014 {
2015 typedef typename iter_size<FwdIt>::type it_size_type;
2016 BOOST_ASSERT(this->priv_in_range_or_end(pos));
2017 const it_size_type sz = boost::container::iterator_udistance(first, last);
2018 if (sz > size_type(-1)){
2019 boost::container::throw_length_error("vector::insert, FwdIt's max length reached");
2020 }
2021
2022 dtl::insert_range_proxy<allocator_type, FwdIt, T*> proxy(first);
2023 return this->priv_insert_forward_range(vector_iterator_get_ptr(pos), static_cast<size_type>(sz), proxy);
2024 }
2025 #endif
2026
2027 //! <b>Requires</b>: p must be a valid iterator of *this. num, must

Callers 8

insertIfpMethod · 0.50
WorkerMethod · 0.50
setStateMethod · 0.50
insertMethod · 0.50
ObjectsArrayClass · 0.50
AbstractStringClass · 0.50
insertMethod · 0.50
parseMethod · 0.50

Calls 5

iterator_udistanceFunction · 0.85
throw_length_errorFunction · 0.85
insertMethod · 0.45
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected