浅墨浓香

想要天亮进城,就得天黑赶路。

导航

2020年4月25日

摘要: 6.4 Using enable_if<> 6.4 使用enable_if<> We can use enable_if<> to solve our problem with the constructor template introduced in Section 6.2 on page 95 阅读全文

posted @ 2020-04-25 23:12 浅墨浓香 阅读(734) 评论(0) 推荐(0) 编辑

摘要: 6.3 Disable Templates with enable_if<> 6.3 使用enable_if<>来禁用模板 Since C++11, the C++ standard library provides a helper template std::enable_if<> to ign 阅读全文

posted @ 2020-04-25 20:28 浅墨浓香 阅读(936) 评论(0) 推荐(0) 编辑

摘要: 6.2 Special Member Function Templates 6.2 特殊成员函数模板 Member function templates can also be used as special member functions, including as a constructor, 阅读全文

posted @ 2020-04-25 18:24 浅墨浓香 阅读(306) 评论(0) 推荐(0) 编辑