MCPcopy Create free account
hub / github.com/anthonywilliams/ccia_code_samples / increment

Method increment

listings/listing_10.1.cpp:10–13  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8 return data;
9 }
10 void increment(){
11 std::lock_guard guard(m);
12 ++data;
13 }
14};
15void increment_all(std::vector<X>& v){
16 std::for_each(std::execution::par,v.begin(),v.end(),

Callers 1

increment_allFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected