Next

Chapter 1. The Boost Convert Library 2.0

Vladimir Batov

Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)

Table of Contents

Introduction
Motivation
Design Notes
Getting Started
Getting Serious
Boost.Convert with Standard Algorithms
Converters
boost::lexical_cast-Based Converter
std::stringstream-Based Converter
Formatting Support
Locale Support
Integration of User-Defined Types
Performance
The Default Constructible Type Requirement
Other Conversions
Convert Reference
Header <boost/convert/api.hpp>
Header <boost/convert/lexical_cast_converter.hpp>
Header <boost/convert/safebool.hpp>
Header <boost/convert/sstream_converter.hpp>
Header <boost/convert/string_sfinae.hpp>
Acknowledgements
Index

Boost.Convert builds on the boost::lexical_cast original design and experience and takes those conversion/transformation-related ideas further

  • to be applicable to a wider range of conversion-related deployment scenarios,
  • to provide a more flexible, extensible and configurable type-conversion framework.

Please note that the described framework is not part of the Boost library collection even though in this document it is referred to as Boost.Convert and the relevant code is under the boost directory. It is done so in preparation for potential submission of the library to Boost.

Last revised: February 14, 2014 at 22:00:40 GMT


Next