MCPcopy Create free account
hub / github.com/HelenOS/helenos / copy

Method copy

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

Source from the content-addressed store, hash-verified

1148 }
1149
1150 size_type copy(value_type* str, size_type n, size_type pos = 0) const
1151 {
1152 auto len = min(n , size_ - pos);
1153 for (size_type i = 0; i < len; ++i)
1154 traits_type::assign(str[i], data_[pos + i]);
1155
1156 return len;
1157 }
1158
1159 void swap(basic_string& other)
1160 noexcept(allocator_traits<allocator_type>::propagate_on_container_swap::value ||

Callers 1

test_copyMethod · 0.45

Calls

no outgoing calls

Tested by 1

test_copyMethod · 0.36