Boost C++ Libraries

...one of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards

This is the documentation for an old version of Boost. Click here to view this page for the latest version.
PrevUpHomeNext

Supporting Tools

boost::cnv::range
boost::cnv::is_range
BOOST_DECLARE_HAS_MEMBER
BOOST_DECLARE_IS_CALLABLE
boost::cnv::is_cnv

This section describes a few supporting tools written as part of Boost.Convert but which might be useful in their own rights.

boost::cnv::range is a consolidation of the [begin, end)-based ranges (such as std::string) and the sentry-based ranges (such as null-terminated C-style strings). It allows universal traversal of both types of ranges with

for (auto s = range.begin(); s != range.sentry(); ++s)

without the penalty or the need for an extra traversal of the sentry-based ranges in order to find the end.

TODO


PrevUpHomeNext