Stay Hungry , Stay Foolish

君子生非异也,善假于物也

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2016年8月16日

摘要: #include struct Hello { int helloworld() { return 0; } }; struct Generic {}; // SFINAE test template class has_helloworld { typedef char yes[1]; typedef yes no[2]; template... 阅读全文
posted @ 2016-08-16 11:22 octocat 阅读(414) 评论(0) 推荐(0) 编辑

摘要: #include // std::copy #include // std::size_t #include class dumb_array { public: // (default) constructor dumb_array(std::size_t size = 0) : mSize(size), mArray(mSize ? ... 阅读全文
posted @ 2016-08-16 10:41 octocat 阅读(311) 评论(0) 推荐(0) 编辑