Boost logo

Boost :

Subject: Re: [boost] [Boost.Range] Documentation
From: Thorsten Ottosen (tottosen_at_[hidden])
Date: 2017-07-12 14:13:53


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/adaptors/introduction.html

And from

http://www.boost.org/doc/libs/1_64_0/libs/range/doc/html/range/reference/adaptors/reference/adjacent_filtered.html

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/algorithms/introduction.html

HTH

-Thorsten


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk