Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Use std::unordered_set instead of std::set for EventSet
authorMaxwell Pirtle <maxwellpirtle@gmail.com>
Tue, 14 Feb 2023 14:04:40 +0000 (15:04 +0100)
committerMaxwell Pirtle <maxwellpirtle@gmail.com>
Mon, 20 Feb 2023 09:43:53 +0000 (10:43 +0100)
commitc5a0e326db7483bc9e3caadb7dac5ecfb7d73946
tree06e259cb16fac7c59ad8189ad9d4424ca2e7c7d9
parenta123c47d727be0441ca0702d10a3ef63437deca7
Use std::unordered_set instead of std::set for EventSet

The ordering of the events in the set does not
matter in an EventSet. The std::unordered_set construct
is thus a better fit (std::set orders its elements).
While this disallows the use of the nice functions
in the standard library for forming unions etc.,
it is trivial to implement the functions `make_union()`
etc.
src/mc/explo/UdporChecker.cpp
src/mc/explo/udpor/EventSet.cpp
src/mc/explo/udpor/EventSet.hpp