version 1.1.2.4, 2006/06/30 19:50:21
|
version 1.1.2.6, 2006/06/30 20:07:50
|
|
|
{ | { |
PEGASUS_LIST_ASSERT(p->magic == PEGASUS_LINKABLE_MAGIC); | PEGASUS_LIST_ASSERT(p->magic == PEGASUS_LINKABLE_MAGIC); |
Linkable* next = p->next; | Linkable* next = p->next; |
|
p->list = 0; |
_destructor(p); | _destructor(p); |
p = next; | p = next; |
} | } |
|
|
PEGASUS_LIST_ASSERT(elem != 0); | PEGASUS_LIST_ASSERT(elem != 0); |
PEGASUS_LIST_ASSERT(elem->magic == PEGASUS_LINKABLE_MAGIC); | PEGASUS_LIST_ASSERT(elem->magic == PEGASUS_LINKABLE_MAGIC); |
| |
return elem && elem->list == this; |
|
|
|
#if 0 |
|
for (const Linkable* p = _front; p; p = p->next) | for (const Linkable* p = _front; p; p = p->next) |
{ | { |
if (p == elem) | if (p == elem) |
|
|
| |
// Not found! | // Not found! |
return false; | return false; |
#endif |
|
} | } |
| |
Linkable* ListRep::remove_front() | Linkable* ListRep::remove_front() |