| 349 | } |
| 350 | |
| 351 | void |
| 352 | put(Object &obj, unsigned int index) |
| 353 | { |
| 354 | if (obj.isBorrowed()) |
| 355 | throw Suscan::Exception("Cannot put borrowed objects into a set"); |
| 356 | |
| 357 | SU_ATTEMPT(suscan_object_set_put(this->instance, index, obj.instance)); |
| 358 | |
| 359 | obj.borrowed = true; |
| 360 | } |
| 361 | |
| 362 | void |
| 363 | remove(unsigned int index) |
no test coverage detected