MCPcopy Index your code
hub / github.com/HelenOS/helenos / insert

Method insert

uspace/lib/cpp/include/__bits/string/string.hpp:979–991  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

977 }
978
979 iterator insert(const_iterator pos, value_type c)
980 {
981 auto idx = static_cast<size_type>(pos - begin());
982
983 ensure_free_space_(1);
984 copy_backward_(begin() + idx, end(), end() + 1);
985 traits_type::assign(data_[idx], c);
986
987 ++size_;
988 ensure_null_terminator_();
989
990 return begin() + idx;
991 }
992
993 iterator insert(const_iterator pos, size_type n, value_type c)
994 {

Callers 1

operator+Function · 0.45

Calls 4

beginFunction · 0.85
endFunction · 0.85
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected