Skip to main content

The C++ Standard Library Extensions: A Tutorial and Reference

[bookcover:0321412990]

이제 막 The C++ Standard Library Extensions: A Tutorial and Reference을 다 읽었습니다. 중간에 math library와 C99 compatibility 부분에서 속도가 늦어져 조금 오래 걸렸네요. ;-)

책은 tr1에 대한 완전한 내용을 담고 있습니다. 이 중 대부분은 boost 문서를 통해 어느 정도 알던 것이었지만 random number generator나 regular expression 라이브러리등의 자세한 사용법은 이 책을 통해 알게 되었네요.

책은 tr1에 대한 내용을 간단한 예제들과 함께 소개하고 있는데 거의 reference manual 형식입니다. 아쉬운 점은 예제의 출력 내용이 없어 실제 예제의 출력이 정확히 무엇인지 볼 수 없다는 점이었습니다. 물론 예제는 다운로드 받을 수 있으나 컴파일하려면 tr1 라이브러리와 지원 컴파일러가 있어야 하겠죠? ((Dimkumware Ltd.의 Dinkum TR1 라이브러리와 MSVC 7.1, gcc 3.4.3 컴파일러를 사용하여 테스트했다고 합니다. 물론 boost 라이브러리를 사용하면 대부분의 내용이 사용 가능합니다.)) 대부분의 초판인 책들에서 발견되는 오기들을 이 책에서는 거의 찾을 수 없었구요.

tr1 라이브러리의 내용이 정확히 어떤 내용인지 알고 싶으신 분들은 한번 읽어두시면 좋겠네요.

책을 읽고 나니 boost 라이브러리에는 있으나 tr1에는 없는 라이브러리들이 생각보다 너무 많다는 생각이 들었습니다. 만약 tuple과 mpl을 하나의 코드에서 사용하고 싶다면 tr1::tuple과 boost::mpl을 사용하는 것이 좋을지 그냥 boost 라이브러리만 사용하는 것이 좋을지 모르겠네요. 아마 제 경우엔 그냥 boost 라이브러리만 사용하게 될 것 같습니다. 또하나... boost에서 얼른 unordered_set과 unordered_map을 지원해 주었으면 좋겠습니다. 이것 하나때문에 STLport같은 또 다른 라이브러리를 설치하지 않으려면요. :-)

Comments

Popular posts from this blog

CodeHighlighter plugin test page.

This post is for testing CodeHighlighter plugin which uses GeSHi as a fontifier engine. ((Those code blocks are acquired from Google Code Search .)) ((For more supported languages, go CodeHighlighter plugin or GeSHi homepage.)) C++ (<pre lang="cpp" lineno="1">) class nsScannerBufferList { public: /** * Buffer objects are directly followed by a data segment. The start * of the data segment is determined by increment the |this| pointer * by 1 unit. */ class Buffer : public PRCList { public: Buffer() { ++index_; } PHP (<pre lang="php" lineno="4">) for ($i = 0; $i $value = ord( $utf8_string[ $i ] ); if ( $value < 128 ) { // ASCII $unicode .= chr($value); } else { if ( count( $values ) == 0 ) { $num_octets = ( $value } $values[] = $value; Lisp (<pre lang="lisp">) ;;; Assignment (define-caller-pattern setq ((:star var fo...

Textiler plugin test page

This post is for testing Textiler plugin . This plugin uses Textile engine (version 2.0.0). The sample text is come from Textile test page. (Note that the result will be vary according to your CSS options.) Supported wiki syntax Rendering result h2{color:green}. This is a title h3. This is a subhead p{color:red}. This is some text of dubious character. Isn't the use of "quotes" just lazy writing -- and theft of 'intellectual property' besides? I think the time has come to see a block quote. bq[fr]. This is a block quote. I'll admit it's not the most exciting block quote ever devised. Simple list: #{color:blue} one # two # three Multi-level list: # one ## aye ## bee ## see # two ## x ## y # three Mixed list: * Point one * Point two ## Step 1 ## Step 2 ## Step 3 * Point three ** Sub point 1 ** Sub point 2 Well, that went well. How about we insert an <a href="/" title="watch out">old-fashioned hypertext link</a>? Will the quo...

BookCover plugin test page

This post is for testing BookCover plugin . (( The previous test page has some comments from users.)) The 'Books Reading' section in the sidebar is also using this plugin. [ bookcover:1932394613] [bookcover:1932394613] [ bookcover:1590598385(Smart and Gets Things Done)] [bookcover:1590598385(Smart and Gets Things Done)] [ bookcover:1591841380(Wikinomics : How Mass Collaboration Changes Everything)] [bookcover:1591841380(Wikinomics : How Mass Collaboration Changes Everything)] [ bookcover:8995856408] [bookcover:8995856408] [ bookcover:8831793721] [bookcover:8831793721] [ bookcover:9788831793728] [bookcover:9788831793728]