摘要: 今天粗略的看了下glog的源代码,发现一处是宏的替换应用,特提出来分享。template<class Iter>inline void PrintSequence(std::ostream& out, Iter begin, Iter end) { using ::operator<<; // Output at most 100 elements -- appropriate if used for logging. for (int i = 0; begin != end && i < 100; ++i, ++begin) { if ( 阅读全文
posted @ 2013-03-02 08:05 westfly 阅读(193) 评论(0) 推荐(0) 编辑