Chapter 1. Starting to Write Your Application

In this chapter we will cover:

  • Getting configuration options
  • Storing any value in a container/variable
  • Storing multiple chosen types in a container/variable
  • Using a safer way to work with a container that stores multiple chosen types
  • Returning a value or flag where there is no value
  • Returning an array from a function
  • Combining multiple values into one
  • Reordering the parameters of a function
  • Binding a value as a function parameter
  • Using the C++11 move emulation
  • Making a noncopyable class
  • Making a noncopyable but movable class


Boost is a collection of C++ libraries. Each library has been reviewed by many professional programmers before being accepted to Boost. Libraries are tested on multiple platforms ...

Get Boost C++ Application Development Cookbook now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.