【文件属性】:
文件名称:pfr:std :: tuple类似用户定义类型的方法,没有任何宏或样板代码
文件大小:97KB
文件格式:ZIP
更新时间:2021-01-30 15:02:58
visual-studio reflection magic cplusplus cpp
增强PFR
这是一个C ++ 14库,用于非常基本的反射,使您可以按索引访问结构元素,并为用户定义的类型提供其他std::tuple类的方法,而无需任何宏或样板代码。
检测结果
分行
建立
测试覆盖率
更多信息
开发:
主:
激励实例#0
# include < iostream>
# include < fstream>
# include < string>
# include " boost/pfr.hpp "
struct some_person {
std::string name;
unsigned birth_year;
};
int main ( int argc, const char * argv[]) {
some_person val{ " Edgar Allan Poe " , 1809 };
std::cout << boost>(val) // No macro!
<< " was born in " << boost>(val
【文件预览】:
pfr-master
----.travis.yml(8KB)
----misc()
--------generate_cpp17.py(4KB)
----example()
--------get.cpp(1KB)
--------sample_printing.cpp(2KB)
--------motivating_example0.cpp(694B)
--------quick_examples.cpp(4KB)
----test()
--------print_config.cpp(1KB)
--------compile-fail()
--------appveyor.yml(4KB)
--------Jamfile.v2(5KB)
--------run()
--------test_tuple_sizes_on.cpp(2KB)
--------loophole_detection.cpp(957B)
--------offset_based_getter.cpp(1KB)
----include()
--------boost()
----index.html(266B)
----doc()
--------pfr.qbk(19KB)
--------Jamfile.v2(2KB)
----.gitignore(22B)
----LICENSE_1_0.txt(1KB)
----README.md(3KB)
----meta()
--------libraries.json(349B)
----.gitattributes(4KB)