* @brief Tests constructing STL containers with StringZilla strings. */
| 4438 | * @brief Tests constructing STL containers with StringZilla strings. |
| 4439 | */ |
| 4440 | void test_stl_containers() { |
| 4441 | std::map<sz::string, int> sorted_words_sz; |
| 4442 | std::unordered_map<sz::string, int> words_sz; |
| 4443 | assert(sorted_words_sz.empty()); |
| 4444 | assert(words_sz.empty()); |
| 4445 | |
| 4446 | std::map<std::string, int, sz::less> sorted_words_stl; |
| 4447 | std::unordered_map<std::string, int, sz::hash, sz::equal_to> words_stl; |
| 4448 | assert(sorted_words_stl.empty()); |
| 4449 | assert(words_stl.empty()); |
| 4450 | } |
| 4451 | |
| 4452 | int main(int argc, char const **argv) { |
| 4453 |