【文件属性】:
文件名称:args:仅标题的库,用于绑定,重新排序和使用函数参数,无需花费任何费用
文件大小:7KB
文件格式:ZIP
更新时间:2021-05-12 00:52:10
fast functional binder modern cpp
args
不带类型擦除的仅标头功能编程支持库。
void foo ( int , float , const char *);
// all of the examples below call foo(1, 2.f, "3") and are optimized out in release builds
auto reordered = args::reorder< 2>(foo);
reordered ( " 3 " , 1 , 2 .f);
auto bound = args::bind< 1>(foo, 2 .f);
bound ( 1 , " hello " );
auto curried = args::curry< 0>(foo);
auto bound2 = curried( 1 , " 3 " );
bound2 ( 2 .f);
快
【文件预览】:
args-master
----test()
--------args.cpp(5KB)
----include()
--------args.hpp(10KB)
----.gitignore(4KB)
----CMakeLists.txt(115B)
----README.md(1KB)
----.gitattributes(2KB)