fifo_map
fifo_map copied to clipboard
a FIFO-ordered associative container for C++
Isn't the time complexity a little high, when `for (auto x : m) { ... }`? One iteration calls fifo_map_compare n^2 times. I think the time complexity of such a...
/// swaps the contents void swap(fifo_map& other) { std::swap(m_map, other.m_map); std::swap(m_compare, other.m_compare); std::swap(m_keys, other.m_keys); } m_compare‘s member m_key point to m_map's m_key
will this class support move() semantics?
I am playing with clang-15 in Yocto and ended up with build errors in this compoent as below ``` /mnt/b/yoe/master/build/tmp/work/core2-64-yoe-linux-musl/nlohmann-fifo/1.0.0+gitAUTOINC+d732aaf9a3-r0/recipe-sysroot/usr/include/c++/v1/__random/uniform_int_distribution.h:235:5: error: static assertion failed due to requirement '__libcpp_random_is_valid_urng::value': static_assert(__libcpp_random_is_valid_urng::value, "");...
I let the contributors to know that there is another open source called ordered_map
i might be doing something wrong, but i'm having some problems with the = operator. When i build a fifo_map in a function and then return it, it seems to...
This library lacks a cmake config file, which means it cannot be easily found with find_package. Given that package managers are becoming more used, I believe this should be addressed....