Add unordered_dense and deprecate robin-hood-hasing (#1413)
* Add unordered_dense and deprecate robin-hood-hasing * Update xmake.lua * Update xmake.lua Co-authored-by: ruki <waruqi@gmail.com>pull/1419/head
parent
9111d4a309
commit
7d5768b0e6
2 changed files with 28 additions and 0 deletions
@ -0,0 +1,24 @@ |
||||
package("unordered_dense") |
||||
set_kind("library", {headeronly = true}) |
||||
set_homepage("https://github.com/martinus/unordered_dense") |
||||
set_description("A fast & densely stored hashmap and hashset based on robin-hood backward shift deletion.") |
||||
set_license("MIT") |
||||
|
||||
add_urls("https://github.com/martinus/unordered_dense/archive/refs/tags/$(version).tar.gz", |
||||
"https://github.com/martinus/unordered_dense.git") |
||||
add_versions("v1.1.0", "b47d8590afdc32b306272a6bcb15d5464462f3cd3d44653648924a1e10d1e78c") |
||||
|
||||
add_deps("cmake") |
||||
on_install(function (package) |
||||
import("package.tools.cmake").install(package) |
||||
os.cp("include", package:installdir()) |
||||
end) |
||||
|
||||
on_test(function (package) |
||||
assert(package:check_cxxsnippets({test = [[ |
||||
void test() { |
||||
ankerl::unordered_dense::map<int, int> map; |
||||
map[123] = 333; |
||||
} |
||||
]]}, {configs = {languages = "c++17"}, includes = "ankerl/unordered_dense.h"})) |
||||
end) |
Loading…
Reference in new issue