P4C
The P4 Compiler
|
#include <assoc.h>
Public Types | |
using | hasher = typename Base::hasher |
using | key_equal = typename Base::key_equal |
Static Public Attributes | |
static constexpr bool | iterable = Itble == Iterable::Yes |
Base of our conditionally-iterable associative containers used for unsorted (hashed) containers. In this case, the iteration order is never stable, even for containers over stable elements. Therefore, we just disable iteration, except if explicitly enabled.
|
staticconstexpr |
Hash based containers are never iterable unless explicitly enabled. The ordering is never stable and the order of element in the container might even change if some other elements are inserted and/or deleted.