devxlogo

Book Excerpt: Beyond the C++ Standard Library: An Introduction to Boost

Book Excerpt: Beyond the C++ Standard Library: An Introduction to Boost

oost takes you far beyond the C++ Standard Library, making C++ programming more elegant, robust, and productive. Now, for the first time, a leading Boost expert systematically introduces the broad set of Boost libraries and teaches best practices for their use.

Writing for intermediate-to-advanced C++ developers, Bj?rn Karlsson briefly outlines all 58 Boost libraries, and then presents comprehensive coverage of 12 libraries you’re likely to find especially useful. Karlsson’s topics range from smart pointers and conversions to containers and data structures, explaining exactly how using each library can improve your code. He offers detailed coverage of higher-order function objects that enable you to write code that is more concise, expressive, and readable. He even takes you “behind the scenes” with Boost, revealing tools and techniques for creating your own generic libraries.

Chapter 9 is on the Bind Library. Although the Standard Library does offer some productive tools, such as bind1st and bind2nd, this is rarely enough. Even when the functionality suffices, that often implies suffering from awkward syntax thatobfuscates the code for programmers who are not familiar with those tools. What you need, then, is a solution that both adds functionality and normalizes the syntax for creating function objects on-the-fly, and this is what Boost.Bind does.

Download Chapter 9, “The Bind Library.”

Beyond the C++ Standard Library: An Introduction to Boost By Bj?rn Karlsson. Published by Addison Wesley.ISBN: 0321133544; Published: Aug 31, 2005; Copyright 2006; Dimensions 7-3/8×9-1/4 ; Pages: 432; Edition: 1st.

devxblackblue

About Our Editorial Process

At DevX, we’re dedicated to tech entrepreneurship. Our team closely follows industry shifts, new products, AI breakthroughs, technology trends, and funding announcements. Articles undergo thorough editing to ensure accuracy and clarity, reflecting DevX’s style and supporting entrepreneurs in the tech sphere.

See our full editorial policy.

About Our Journalist