| 176 | } |
| 177 | |
| 178 | std::pair<iterator, bool> |
| 179 | insert(const value_type &value, command_queue &queue) |
| 180 | { |
| 181 | iterator location = upper_bound(value.first, queue); |
| 182 | |
| 183 | if(location != begin()){ |
| 184 | value_type current_value; |
| 185 | ::boost::compute::copy_n(location - 1, 1, ¤t_value, queue); |
| 186 | if(value.first == current_value.first){ |
| 187 | return std::make_pair(location - 1, false); |
| 188 | } |
| 189 | } |
| 190 | |
| 191 | m_vector.insert(location, value); |
| 192 | return std::make_pair(location, true); |
| 193 | } |
| 194 | |
| 195 | std::pair<iterator, bool> insert(const value_type &value) |
| 196 | { |
nothing calls this directly
no test coverage detected