P4C
The P4 Compiler
|
#include <assoc.h>
Public Member Functions | |
void | swap (hash_set &other) noexcept |
const ABase & | unstable_iterable () const |
Set container implemented as hashtable. Provides average constant time lookup. Member functions used for iteration (begin) are intentionaly not exposed to avoid accidental nondeterministic behavior of the compiler.
|
inline |
Extract an iterable that can be iterated over even if this container is not iterable. This is intended for targeted use at places where it is actually safe to iterate over a container with unspecified order – i.e. in cases where the result does in no way depend on the iteration order. An example can be checking if a given value is present in the map.