std::basic_string<CharT,Traits,Allocator>::insert
提供: cppreference.com
<tbody>
</tbody>
<tbody class="t-dcl-rev t-dcl-rev-num ">
</tbody><tbody>
</tbody>
<tbody class="t-dcl-rev t-dcl-rev-num ">
</tbody><tbody>
</tbody>
<tbody class="t-dcl-rev t-dcl-rev-num ">
</tbody><tbody>
</tbody>
<tbody class="t-dcl-rev t-dcl-rev-num ">
</tbody><tbody>
</tbody>
<tbody class="t-dcl-rev t-dcl-rev-num ">
</tbody><tbody>
</tbody>
<tbody class="t-dcl-rev t-dcl-rev-num ">
</tbody><tbody>
</tbody>
<tbody class="t-dcl-rev t-dcl-rev-num ">
</tbody><tbody>
</tbody>
<tbody class="t-dcl-rev t-dcl-rev-num ">
</tbody><tbody>
</tbody>
<tbody class="t-dcl-rev t-dcl-rev-num ">
</tbody><tbody>
</tbody>
<tbody class="t-dcl-rev t-dcl-rev-num ">
</tbody><tbody>
</tbody>
<tbody class="t-dcl-rev t-dcl-rev-num ">
</tbody><tbody>
</tbody>
| (1) | ||
basic_string& insert( size_type index, size_type count, CharT ch ); |
(C++20未満) | |
constexpr basic_string& insert( size_type index, size_type count, CharT ch ); |
(C++20以上) | |
| (2) | ||
basic_string& insert( size_type index, const CharT* s ); |
(C++20未満) | |
constexpr basic_string& insert( size_type index, const CharT* s ); |
(C++20以上) | |
| (3) | ||
basic_string& insert( size_type index, const CharT* s, size_type count ); |
(C++20未満) | |
constexpr basic_string& insert( size_type index, const CharT* s, size_type count ); |
(C++20以上) | |
| (4) | ||
basic_string& insert( size_type index, const basic_string& str ); |
(C++20未満) | |
constexpr basic_string& insert( size_type index, const basic_string& str ); |
(C++20以上) | |
| (5) | ||
basic_string& insert( size_type index, const basic_string& str, size_type index_str, size_type count ); |
(C++14未満) | |
basic_string& insert( size_type index, const basic_string& str, size_type index_str, size_type count = npos); |
(C++14以上) (C++20未満) |
|
constexpr basic_string& insert( size_type index, const basic_string& str, size_type index_str, size_type count = npos); |
(C++20以上) | |
| (6) | ||
iterator insert( iterator pos, CharT ch ); |
(C++11未満) | |
iterator insert |