How to use std::string as key in stxxl::map
问题 I am trying to use std::string as a key in the stxxl::map The insertion was fine for small number of strings about 10-100. But while trying to insert large number of strings about 100000 in it, I am getting segmentation fault. The code is as follows: struct CompareGreaterString { bool operator () (const std::string& a, const std::string& b) const { return a > b; } static std::string max_value() { return ""; } }; // template parameter <KeyType, DataType, CompareType, RawNodeSize, RawLeafSize,