로그인회원가입장바구니고객센터마이페이지회사소개
kangcom
전체
Home >   >   > 

Effective STL

   
지은이 Scott Meyers   |   출판사 Addison-Wesley Professional  |   발행일 2001년 06월 16일   |   언어 : English
 
판매가 76,990원69,290원 10%
마일리지 1% 770원
발행일 2001-06-16 | 중량: 0.57 kg | 사이즈: 18.7*23.4*1.6 cm
ISBN 0201749629 |  9780201749625
기타정보 원서 | 270쪽 | $ 54.99 | £ 59.95 | Paperback
예상입고일
배송비 무료배송
    정가, 판매가는 항공 운임료 포함
프로그래밍언어
종합지수 2p 787 위
   
이 책의 번역서
  이펙티브 STL
인포북 | Scott Meyers
 

C++의 Standard Template Library는 가히 혁명적이라 할 수 있다. 그러나 지금까지 STL을 사용하는 방법을 배우는 것은 항상 도전에 가까웠다고 할 수 있다. 이 책은 STL이 무엇인지를 설명하는 것이 아니라 그것의 사용 방법을 보여주고 있다.

- 표준 STL 컨테이너와 비표준 STL 컨테이너 선택에 관한 어드바이스
- STL의 효율성 최대화를 위한 테크닉
- 적합한 알고리즘과 멤버 함수 사용에 대한 가이드

“This is Effective C++ volume three – it’s really that good.”
– Herb Sutter, independent consultant and secretary of the ISO/ANSI C++ standards committee
“There are very few books which all C++ programmers must have. Add Effective STL to that list.”
– Thomas Becker, Senior Software Engineer, Zephyr Associates, Inc., and columnist, C/C++ Users Journal
C++’s Standard Template Library is revolutionary, but learning to use it well has always been a challenge. Until now. In this book, best-selling author Scott Meyers ( Effective C++ , and More Effective C++ ) reveals the critical rules of thumb employed by the experts – the things they almost always do or almost always avoid doing – to get the most out of the library.

Other books describe what’s in the STL. Effective STL shows you how to use it. Each of the book’s 50 guidelines is backed by Meyers’ legendary analysis and incisive examples, so you’ll learn not only what to do, but also when to do it – and why.

Highlights of Effective STL include:

Advice on choosing among standard STL containers (like vector and list), nonstandard STL containers (like hash_set and hash_map), and non-STL containers (like bitset).
Techniques to maximize the efficiency of the STL and the programs that use it.
Insights into the behavior of iterators, function objects, and allocators, including things you should not do.
Guidance for the proper use of algorithms and member functions whose names are the same (e.g., find), but whose actions differ in subtle (but important) ways.
Discussions of potential portability problems, including straightforward ways to avoid them.
Like Meyers’ previous books, Effective STL is filled with proven wisdom that comes only from experience. Its clear, concise, penetrating style makes it an essential resource for every STL programmer.
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.
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.
Item 10: Be aware of allocator conventions and restrictions.
Item 11: Understand the legitimate uses of custom allocators.
Item 12: Have realistic expectations about the thread safety of STL containers.

 

2. Vector and string.

Item 13: Prefer vector and string to dynamically allocated arrays.
Item 14: Use reserve to avoid unnecessary reallocations.
Item 15: Be aware of variations in string implementations.
Item 16: Know how to pass vector and string data to legacy APIs.
Item 17: Use "the swap trick" to trim excess capacity.
Item 18: Avoid using vector.

 

3. Associative Containers.

Item 19: Understand the difference between equality and equivalence.
Item 20: Specify comparison types for associative containers of pointers.
Item 21: Always have comparison functions return false for equal values.
Item 22: Avoid in-place key modification in set and multiset.
Item 23: Consider replacing associative containers with sorted vectors.
Item 24: Prefer map::insert to map::operator when efficiency is a concern.
Item 25: Familiarize yourself with the nonstandard hashed containers.

 

4. Iterators.

Item 26: Prefer iterator to const_iterator, reverse_iterator, and const_reverse_iterator.
Item 27: Use distance and advance to convert const_iterators to iterators.
Item 28: Understand how to use a reverse_iterator's base iterator.
Item 29: Consider istreambuf_iterators for character by character input.

 

5. Algorithms.

Item 30: Make sure destination ranges are big enough.
Item 31: Know your sorting options.
Item 32: Follow remove-like algorithms by erase if you really want to remove something.
Item 33: Be wary of remove-like algorithms on containers of pointers.
Item 34: Note which algorithms expect sorted ranges.
Item 35: Implement simple case-insensitive string comparisons via mismatch or lexicographical_compare.
Item 36: Use not1 and remove_copy_if to perform a copy_if.
Item 37: Use accumulate or for_each to summarize sequences.

 

6. Functors, Functor Classes, Functions, etc.

Item 38: Design functor classes for pass-by-value.
Item 39: Make predicates pure functions.
Item 40: Make functor classes adaptable.
Item 41: Understand the reasons for ptr_fun, mem_fun, and mem_fun_ref.
Item 42: Make sure less means operator

 

7. Programming with the STL.

Item 43: Prefer algorithm calls to hand-written loops.
Item 44: Prefer member functions to algorithms with the same names.
Item 45: Distinguish among count, find, binary_search, lower_bound, upper_bound, and equal_range.
Item 46: Consider function objects instead of functions as algorithm parameters.
Item 47: Avoid producing write-only code.
Item 48: Always #include the proper headers.
Item 49: Learn to decipher STL-related compiler diagnostics.
Item 50: Familiarize yourself with STL-related web sites.

 

Bibliography.

Appendix A. Locales and Case-Insensitive.

String Comparisons.

Appendix B. Remarks on Microsoft's STL Platforms.

Index.
준비 중입니다.
등록된 서평이 없습니다.
C 언어 프로그래밍 (윤상균 외)...
윤상균
선택된 상품을 찜하실 수 있습니다. 선택된 상품을 바로구매 하실 수 있습니다.
C 언어 프로그래밍 (윤상균 외)...
윤상균
선택된 상품을 찜하실 수 있습니다. 선택된 상품을 바로구매 하실 수 있습니다.
문제로 풀어 보는 C언어 정석...
홍경호
선택된 상품을 찜하실 수 있습니다. 선택된 상품을 바로구매 하실 수 있습니다.
 
전체평균(0)
회원평점   회원서평수 0
Scott Meyers 의 최근 저서
 
Learn Mac OS X Lion
40,310원
(28%↓+1%)
 
Learn Mac OS X Snow Leopard
35,270원
(28%↓+0%)
 
Mac OS X Leopard
26,200원
(25%↓+1%)
 
Mac OS X Leopard: Beyond the Manual
35,270원
(28%↓+0%)
 
Addison-Wesley Professional 출판사의 신간
BPF Performance Tools
Brendan Gregg 저
78,400원
(20%↓+1%)
 
Elemental Design Patterns
Jason McColm Smith 저
40,180원
(2%↓+0%)
 
Multicore Application Programming: For Windows, Linux, and Solaris
Darryl Gove 저
52,250원
(5%↓+1%)
 
Service-Oriented Design with Ruby and Rails
Paul Dix 저
54,870원
(16%↓+1%)
 
Patterns-Based Engineering: Successfully Delivering Solutions Via Patterns
Lee Ackerman 저
59,750원
(16%↓+1%)
 
이메일주소수집거부