| 56 | |
| 57 | template< typename T > |
| 58 | iterator insert( const_iterator pos, std::initializer_list< T > items ) |
| 59 | { |
| 60 | const auto index = pos - ((const wxArrayString*)this)->begin(); |
| 61 | this->wxArrayString::Insert( {}, index, items.size() ); |
| 62 | auto result = this->begin() + index, iter = result; |
| 63 | for ( auto pItem = items.begin(), pEnd = items.end(); |
| 64 | pItem != pEnd; |
| 65 | ++pItem, ++iter |
| 66 | ) { |
| 67 | *iter = *pItem; |
| 68 | } |
| 69 | return result; |
| 70 | } |
| 71 | }; |
| 72 | |
| 73 | #endif |
no test coverage detected