Scott Meyers的新书 Effective STL: 提高STL使用技术的50招

 

Effective C++/More Effective C++的作者Scott Meyers即将推出最新力作:Effective STL, 该书目前已经完成,相信不久可以问世。但是与中国读者见面恐怕还是要在苦等之后。Addison=Wesley已经刊出了此书的页面。地址http://cseng.aw.com/book/toc/0,3830,0201749629,00.html

下面是该书的内容:
某些条款我基本可以理解,大部分知道应该如此,但不知其所以然,某些条款令我相当诧异,所以更希望能够早日拜读。我对于某些条款的感想用[]写在下面,我相信也是Meyers书中能够解释的东西。如果对于STL感兴趣的网友能够就这些条款展开讨论,我相信是非常有帮助的。

1. Containers

Item 1: Choose your containers with care.

Item 2: Beware the illusion of container-independent code.
        [值得注意的条款!]

Item 3: Make copying cheap and correct for objects in containers.
        [可以理解,可是如何做到cheap,哪些情况下容易作出不正确的copy操作?]

Item 4: Call empty instead of checking size against zero.
        [何故?]

Item 5: Prefer range member functions to their single-element counterparts.
        [何故?]

Item 6: Be alert for C++'s most vexing parse.
        [谈何容易!]

Item 7: When using containers of newed pointers, remember to delete the pointers before the container is destroyed.
        [可以理解]

Item 8: Never create containers of auto_ptrs.
        [可以理解]

Item 9: Choose carefully among erasing options.
        [非常令我感兴趣的条款]

I

阅读终点,创作起航,您可以撰写心得或摘录文章要点写篇博文。去创作
  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

myan

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值