AnySet:用C ++ 17编写的类型擦除的哈希集

时间:2021-05-18 00:20:32
【文件属性】:
文件名称:AnySet:用C ++ 17编写的类型擦除的哈希集
文件大小:208KB
文件格式:ZIP
更新时间:2021-05-18 00:20:32
c-plus-plus header-only cpp17 type-erasure no-dependencies AnySet AnySet是采用C ++ 17编写的std::unordered_set样式的类型擦除的哈希集。 简而言之,您可以执行以下整洁的工作: using namespace std ::literals ; te::AnySet<> set ({ " Add " s, " a " s, " few " s, " strings " s}); // Or add some ints set.insert({ 1 , 2 , 3 , 4 }); // Or just whatever set.insert( " Hello " s, 1 , 3.1415 , std::bitset< 3>{ 0b011u }); // .contains() ... assert (set.contains( " Hello " s)); // With the appropriate
【文件预览】:
AnySet-master
----.gitignore(120B)
----doc()
--------.gitignore(118B)
--------cppreference.tagfile()
--------tutorial()
--------DoxygenLayout.xml(6KB)
--------CMakeLists.txt(652B)
----README.md(3KB)
----include()
--------anyset()
----MIT-LICENSE(1KB)
----test()
--------.gitignore(89B)
--------tests()
--------CMakeLists.txt(1KB)
----CMakeLists.txt(493B)

网友评论