August 2017
Intermediate to advanced
438 pages
14h 19m
English
The Boost.Algorithm library has all the new C++11 and C++14 algorithms. Using it, you can rewrite the previous example in the following manner:
#include <boost/algorithm/cxx11/iota.hpp>#include <boost/array.hpp>boost::array<unsigned char, 60> chars_65_125() { boost::array<unsigned char, 60> res; boost::algorithm::iota(res.begin(), res.end(), 65); return res;}
Read now
Unlock full access