Boost Preprocessor is so cool
来源:互联网 发布:centos 主流版本 编辑:程序博客网 时间:2024/05/22 01:48
#include "boost/preprocessor/seq/size.hpp"#include "boost/preprocessor/seq/elem.hpp"#include "boost/preprocessor/seq/push_back.hpp"#include "boost/preprocessor/stringize.hpp"#include "boost/preprocessor/iteration/local.hpp"#include "boost/preprocessor/arithmetic/add.hpp"#include "boost/preprocessor/arithmetic/div.hpp"#include "boost/preprocessor/arithmetic/mul.hpp"#include "boost/preprocessor/arithmetic/dec.hpp"#include "boost/preprocessor/arithmetic/mod.hpp"#include "boost/preprocessor/debug/assert.hpp"#include "boost/preprocessor/comparison/equal.hpp"#define SEQ_DIM 4#define SEQ0 (a)(b)(c)(d) \ (a1)(b1)(c1)(d1)BOOST_PP_ASSERT_MSG(BOOST_PP_EQUAL(BOOST_PP_MOD(BOOST_PP_SEQ_SIZE(SEQ0), SEQ_DIM), 0), \"#error SEQ has to be aligned with 4")#define BOOST_PP_LOCAL_MACRO(n) printf("%s %s %s %s\n", \BOOST_PP_STRINGIZE(BOOST_PP_SEQ_ELEM(BOOST_PP_ADD(BOOST_PP_MUL(n, SEQ_DIM), 0), SEQ0)), \BOOST_PP_STRINGIZE(BOOST_PP_SEQ_ELEM(BOOST_PP_ADD(BOOST_PP_MUL(n, SEQ_DIM), 1), SEQ0)), \BOOST_PP_STRINGIZE(BOOST_PP_SEQ_ELEM(BOOST_PP_ADD(BOOST_PP_MUL(n, SEQ_DIM), 2), SEQ0)), \BOOST_PP_STRINGIZE(BOOST_PP_SEQ_ELEM(BOOST_PP_ADD(BOOST_PP_MUL(n, SEQ_DIM), 3), SEQ0)));#define BOOST_PP_LOCAL_LIMITS (0, BOOST_PP_DEC(BOOST_PP_DIV(BOOST_PP_SEQ_SIZE(SEQ0), SEQ_DIM)))#include BOOST_PP_LOCAL_ITERATE()
0 0
- Boost Preprocessor is so cool
- WCF&SOA is so cool in the future business
- boost::preprocessor库简介
- kobe,so cool!
- JavaScript Demo - so cool
- JavaScript 效果 - so cool
- KMP算法,so cool
- boost::preprocessor库使用入门
- Open Watcom is cool!
- Firefox is just cool.
- Debian is really COOL
- writely is cool!
- Samba is really cool
- This is cool...
- then.js is cool
- life is cool
- So Cool!!! vim tutorial image
- boost::preprocessor库的计算替换
- 每天学习一个linux命令(9):touch 命令
- 一个 UNIX 开发者需要掌握的 AIX 技巧
- 三十二、Java图形化界面设计——布局管理器之CardLayout(卡片布局)
- 每天学习一个linux命令(10):cat 命令
- 每天学习一个linux命令(11):nl命令
- Boost Preprocessor is so cool
- 易信公众平台开发从入门到精通之接收普通消息
- 向量的点乘与叉乘
- Qt自定义委托在QTableView中绘制控件、图片、文字
- 每天学习一个linux命令(12):more命令
- 24种不同的ITF条形码字体Interleaved 2 of 5 Barcode Font Advantage Package
- JS CSS创造奇迹
- Python中实现线程池(一)
- 三十三、Java图形化界面设计——布局管理器之null布局(空布局)一般容器都有默认布局方式,但是有时候需要精确指定各个组建的大小和位置,就需要用到空布局。 操作方法: 1)