C++: Difference between revisions

181 bytes added ,  18 October 2019
Line 12: Line 12:
* <code>-std=c++17</code> for C++17 support
* <code>-std=c++17</code> for C++17 support
* <code>-O3</code> for level 3 optmizations
* <code>-O3</code> for level 3 optmizations
===Syntax===
====Lambda Expressions====
[https://en.cppreference.com/w/cpp/language/lambda Reference]


===Arrays===
===Arrays===
Line 81: Line 85:
std::this_thread::sleep_for(std::chrono::milliseconds(1));
std::this_thread::sleep_for(std::chrono::milliseconds(1));
</syntaxhighlight >
</syntaxhighlight >
====Parallel For====
[https://www.alecjacobson.com/weblog/?p=4544 Reference]


===Memory===
===Memory===