rtl:生锈的模板库

时间:2021-03-16 22:58:05
【文件属性】:
文件名称:rtl:生锈的模板库
文件大小:6KB
文件格式:ZIP
更新时间:2021-03-16 22:58:05
C++ 生锈的模板库 有一天,我不得不写C ++。 但是我拒绝了! 选项 // none rtl::Option opt; // implicit cast to false for "None" values assert (!opt); // assign some value opt = rtl::some( " hello " ); // implicit cast to true for "Some" values assert (opt); // unwrap takes ownership, leaving "None" assert (opt.unwrap() == "hello"); assert (opt.unwrap_or( " world " ) == " world"); // alternative syntax to assign a val
【文件预览】:
rtl-master
----.gitignore(18B)
----README.md(1KB)
----cmake()
--------FindCriterion.cmake(968B)
----tests()
--------option.cpp(6KB)
----include()
--------rtl()
----CMakeLists.txt(1KB)

网友评论