Elists are a useful tool to organise non-copyable C++ objects is multiple lists.
The reference documentation can be found in the namespace smart::util at: www.libsmart.com/doc_html
The paper can be downloaded below.
From the abstract:
This paper describes an alternative implementation to organise a number of non-copyable C++ objects using a container similar to std::list. The presented implementation supports the linking of one object in multiple lists without additional memory allocation overhead and the unlinking of individual objects by reference or pointer in constant time. Additionally, this paper wants to illuminate why the standard containers are not sufficient to organise pointers to non-copyable objects and how to use the container described instead.
You are welcome to post your experience using the elist container to the Elist forum. Please register first.
Post bugs, patches to the Elist issue tracker.
| Attachment | Size |
|---|---|
| elist.pdf | 77.63 KB |
| elist.html | 36.85 KB |
| elist.ps.gz | 246.32 KB |
| elist.hpp | 21.78 KB |
Comments
Added iteratorOf member function
For solving some more complex requirements I added the
member functions to the
elistcontainer.The member functions return the appropriate iterator of the given element type.
— armin