… | |
… | |
458 | return obj->*indexmember |
458 | return obj->*indexmember |
459 | ? this->begin () + obj->*indexmember - 1 |
459 | ? this->begin () + obj->*indexmember - 1 |
460 | : this->end (); |
460 | : this->end (); |
461 | } |
461 | } |
462 | |
462 | |
|
|
463 | void push_back (T *obj) |
|
|
464 | { |
|
|
465 | std::vector<T *, slice_allocator<T *> >::push_back (obj); |
|
|
466 | obj->*indexmember = this->size (); |
|
|
467 | } |
|
|
468 | |
463 | void insert (T *obj) |
469 | void insert (T *obj) |
464 | { |
470 | { |
465 | push_back (obj); |
471 | push_back (obj); |
466 | obj->*indexmember = this->size (); |
|
|
467 | } |
472 | } |
468 | |
473 | |
469 | void insert (T &obj) |
474 | void insert (T &obj) |
470 | { |
475 | { |
471 | insert (&obj); |
476 | insert (&obj); |