Den 12-07-2017 kl. 12:14 skrev degski via Boost:
I had a need to try and understand Boost.Range. I don't know what to say, did this documentation pass a review?
Introduction first "example":
Example - Iterate over the values in a map
using namespace boost; using namespace boost::adaptors; for_each( my_map | map_values, fn );
3 lines, out of which 2 'using' lines, that make this "example" even less informative than it might have been without them, in wich case I would at least have known in which namespace(s) these things are living.
[snip]
Well, that obviously got me up and running, thanks.
Is there any other documentation/examples to have a look at?
Perhaps http://www.boost.org/doc/libs/1_64_0/libs/range/doc/html/range/reference/ada... And from http://www.boost.org/doc/libs/1_64_0/libs/range/doc/html/range/reference/ada... and forward, there is an example for each adaptor. For algorithms, http://www.boost.org/doc/libs/1_64_0/libs/range/doc/html/range/reference/alg... HTH -Thorsten