- 授权协议: MIT
- 开发语言: C/C++
- 操作系统: Linux
- 软件首页: https://github.com/matt-42/iod
- 软件文档: https://github.com/matt-42/iod
软件介绍
IOD 库通过一个基于符号的图表增强了 C++14 元编程特性。提供一个编译时的方法来检视对象并生成匹配对象结构的代码。
支持的编译器:
GCC 4.9
Clang 3.4
示例代码:
// Define an object
auto o = D(_Name = "John", _Age = 42, _City = "NYC");
// Direct access to its members.
assert(o.name == "John" && o.age == 42 && o.city == "NYC");
// Static Introspection. It has no execution cost since these function
// are computed at compile time.
assert(o.has(_Name) == true);
assert(o.has(_FirstName) == false);
assert(o.has(_FirstName) == false);
assert(o.size() == 3);
// Output the structure of the object to std::cout:
// name:John
// age:42
// city:NYC
foreach(o) | [] (auto& m) { std::cout << m.symbol().name() << ":"
<< m.value() << std::end; }
网络江湖三十六计
程苓峰,王晶 / 经济日报出版社 / 2009-6 / 40.00元
《网络江湖三十六计》内容简介:貌合神离:卖个破绽给对手,让他尝到甜头,自认为可安枕无忧,往往就松懈大意。于是,自己蓄力并反击的机会就来了。诱敌就是“貌合”,暗地发力就是“神离”。一起来看看 《网络江湖三十六计》 这本书的介绍吧!
