This is actually a STL library feature, and was added precisely for the reason encountered here: if we want logarithmic search, we'll have to construct a new GenNode object, just to have something for the set to invoke the comparison operator. C++14 introduced the convention that the Comparator of the set may define a marker type `is_transparent` alongside with a generic comparison operator. But, as is obvious from the source code of our GNU Standard library implementation, our std::set has no such overload to make use of that feature http://en.cppreference.com/w/cpp/container/set/find http://stackoverflow.com/questions/20317413/what-are-transparent-comparators The only good thing is that, just 10 minutes ago, I felt like a complete moron because I'm writing a unit test for such a simple storage class. ;-) |
||
|---|---|---|
| .. | ||
| interaction-state-manager.cpp | ||
| interaction-state-manager.hpp | ||
| invocation-trail.hpp | ||
| presentation-state-manager.cpp | ||
| presentation-state-manager.hpp | ||
| state-map-grouping-storage.hpp | ||
| state-recorder.hpp | ||