Library 3. Utility

How Does the Utility Library Improve Your Programs?

• Compile time assertions with BOOST_STATIC_ASSERT

• Safe destruction with checked_delete and checked_array_delete

• Prohibition of copying with noncopyable

• Retrieval of object addresses when operator& is overloaded through addressof

• Controlled participation of overloads and specializations with enable_if and disable_if

There are some utilities that just don't constitute a library in their own right, and are therefore grouped together with other entities. This is what Boost.Utility is, a collection of useful tools with no better home. They are useful enough to warrant inclusion in Boost, yet they are too small to deserve their own library. This chapter covers some of ...

Get Beyond the C++ Standard Library: An Introduction to Boost now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.