C++ Ranges proposal for the Standard Library
eles via Digitalmars-d
digitalmars-d at puremagic.com
Fri Oct 17 03:17:37 PDT 2014
On Friday, 17 October 2014 at 10:10:23 UTC, Olivier Grant wrote:
> On Friday, 17 October 2014 at 09:52:26 UTC, Marco Leise wrote:
>> Am Fri, 17 Oct 2014 09:17:51 +0000
>> schrieb "ZombineDev" <valid_email at he.re>:
> No, the equivalent implementation in C++ is this:
>
double mittelwert_accumulate(const vector<double>& vektor)
{
return accumulate(vektor.begin(), vektor.end(), 0.0) /
vektor.size();
}
More information about the Digitalmars-d
mailing list