Can someone please explain what the <atomic> library does? Or what it's for?
pars99 0 Junior Poster in Training
Recommended Answers
Jump to PostI'm having trouble understanding what it is necessarily used for?
Consider this piece of C++11 code:
#include <future> #include <atomic> #include <vector> #include <iostream> int main() { int value = 0; std::vector< std::future< int > > results; results.emplace_back( std::async( [&value]() -> int { return value …
Jump to PostMike2K rocks! Thanks for the post Mike. I haven't pulled myself up to speed on the new standard. This helps, and I WILL do some dilligence on it... :-)
All 6 Replies
mike_2000_17 2,669 21st Century Viking Team Colleague Featured Poster
pars99 0 Junior Poster in Training
mike_2000_17 2,669 21st Century Viking Team Colleague Featured Poster
JasonHippy commented: Great post! +8
David W 131 Practically a Posting Shark
pars99 0 Junior Poster in Training
rubberman 1,355 Nearly a Posting Virtuoso Featured Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.