【文件属性】:
文件名称:linq:C ++使用的linq
文件大小:6KB
文件格式:ZIP
更新时间:2021-02-21 15:23:18
C++
林克
为C ++提供了linq的实现。目前它只支持C ++ Object数据源。
获取linq的实现代码:
演示示例
std::vector< int> v = { 4 , 5 , 6 , 1 , 2 , 3 , 7 , 8 , 9 };
std::vector< int> v2 = { 14 , 15 , 16 , 11 , 12 , 13 , 17 , 18 , 19 };
std::vector< int> v3 = { 5 , 1 , 3 , 7 , 9 };
std::vector< int> v4;
std::multimap< int> cm;
auto q = from( v ).select( []( int x ) { return x + 10 ; } );
assert ( std::equal( v2.begin(), v2.end(),
【文件预览】:
linq-master
----CMakeLists.txt(204B)
----.gitignore(282B)
----README.md(2KB)
----LICENSE(1KB)
----src()
--------CMakeLists.txt(290B)
--------linq.cpp(1KB)
--------linq.hpp(17KB)