Closed StavrosMar closed 2 months ago
Yes, the flat
maps require the keys and values to be movable (they need to be moved when the hash map resizes).
However, the node
hash maps will work fine with non-movable values.
can you add support for the flat map?
can you add support for the flat map?
Unfortunately no, it is not possible, because the values have to be moved in memory when the table is resized.
the following snippet works with std::unordered_map. however when we switch the parallel-hashmap it won't compile because emplace method does not seem to support objects with deleted move/copy ctors and assignment operations.
Please add this feauture .
include
include
include
include
class OHLCPublisher() { } ;
class ohlccache { public: ohlccache(const std::string& id,const std::string& priceformulastr, const std::string& intervalstr,std::shared_ptr ohlcpub) {
std::cout << " Called default A ctor\n";
}
};
int main() { std::unordered_map<std::string, ohlccache> m;
}