SimGrid: Swag: O(1) set datatype

SimGrid 3.10 Versatile Simulation of Distributed Systems

- Home page
- Online documentation
- Dev's Corner

All Data Structures Functions Variables Typedefs Enumerations Enumerator Groups Pages
Modules
Swag: O(1) set datatype
Usual data structures

a O(1) set based on linked lists More...

## Modules
| Swag types
| SWAG functions
| Swag cursor

## Detailed Description

a O(1) set based on linked lists

Warning, this module is done to be efficient and performs tons of cast and dirty things. So make sure you know what you are doing while using it. It is basically a fifo but with restrictions so that it can be used as a set. Any operation (add, remove, belongs) is O(1) and no call to malloc/free is done.