01.
Guru of the Week 条款25:auto_ptrGotW#25 auto_ptr难度:8/10问题考虑下面的代码:那些是好的,那些是安全的,那些是合法的, 那些是非法的?auto_ptr<T> source() { return new T(1); } void sink( auto_ptr<T> pt ) { } void f(...查看完整版>>
Guru of the Week 条款25:auto_ptr
02.
Guru of the Week 条款29:不区分大小写的stringGotW#29 不区分大小写的string (Case-Insensitive Strings)难度:7/10你期望一个不分大小写的字符串类型吗?你的使命是,应该选个现成的并接受它,还是自己写一个。问题写一个不分大小写的字符串类型,它其它方面都...查看完整版>>
Guru of the Week 条款29:不区分大小写的string
03.
Guru of the Week 条款28:“Fast Pimpl”技术GotW #28“Fast Pimpl”技术(The "Fast Pimpl" Idiom)难度:6 / 10采用一些称为“低依赖度”或“效能”方面的捷径,在很多时候颇有诱惑力,但它不总是好主意。这儿有个很精彩的方法能在客观上同时并安全的实现二者...查看完整版>>
Guru of the Week 条款28:“Fast Pimpl”技术
04.
Guru of the Week #8 具有挑战性的话题:异常安全(exception safety)#8 具有挑战性的话题:异常安全(exception safety)难度:9/10C++的异常机制是解决某些问题的很好的方法,但它引入了许多隐藏的控制流程,难以使用。尝试自己实现一个非常简单的容器(一个可以push和pop的stack),看...查看完整版>>
Guru of the Week #8 具有挑战性的话题:异常安全(exception safety)
05.
Guru of the Week 条款19:自动转换GotW #19 Automatic Conversions著者:Herb Sutter翻译:K ][ N G of @rk™[声明]:本文内容取自www.gotw.ca网站上的Guru of the Week栏目,其著作权归原著者本人所有。译者kingofark在未经原著者本人同意的情况...查看完整版>>
Guru of the Week 条款19:自动转换
06.
Guru of the Week 条款18:Iterators(迭代子)GotW #18 Iterators著者:Herb Sutter翻译:K ][ N G of @rk™[声明]:本文内容取自www.gotw.ca网站上的Guru of the Week栏目,其著作权归原著者本人所有。译者kingofark在未经原著者本人同意的情况下翻译本文。...查看完整版>>
Guru of the Week 条款18:Iterators(迭代子)
07.
Guru of the Week 条款17:转型GotW #17 Casts著者:Herb Sutter翻译:K ][ N G of @rk™[声明]:本文内容取自www.gotw.ca网站上的Guru of the Week栏目,其著作权归原著者本人所有。译者kingofark在未经原著者本人同意的情况下翻译本文。本翻...查看完整版>>
Guru of the Week 条款17:转型
08.
A Week in the Life Of a System AdministratorSystem Administrator Appreciation Day6th Annual - Friday - July 29th, 2005( Celebrated annually on last Friday of July )MONDAY 8:05am User called to say they forgot password. Told them to use password...查看完整版>>
A Week in the Life Of a System Administrator
09.
Guru of the Week 条款30附录:接口原则(至此,GotW1~30即《Exceptional C++》的原型,补全。)Herb Sutter在March 1998于C++ Report上发表的文章《What's In a Class - The Interface Principle》,属《Exceptional C++》的Item 32~34。接口原则(the ...查看完整版>>
Guru of the Week 条款30附录:接口原则
10.
Guru of the Week 条款30:名称搜索GotW#30 名称搜索(Name Lookup)难度:9.5 / 10当你调用一个函数时,到底调的是哪一个?其答案取决于“名称搜索”,但你肯定会发现其细节非常令人吃惊。问题在下面的代码中,调用的是哪个函数?为什么?分析一下影响...查看完整版>>
Guru of the Week 条款30:名称搜索
免责声明:本文为网络用户发布,其观点仅代表作者个人观点,与本站无关,本站仅提供信息存储服务。文中陈述内容未经本站证实,其真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。