Tags: #memory #usage #stl
The C++ standard doesn’t dictate exact implementation details for standard library classes, so it’s unsurprising that details of memory usage are missing from most references.
http://info.prelert.com/blog/stl-container-memory-usage
Tags: #math #squares #curve
In this post:
- Fit a curve of degree N to a data set, getting data points 1 at a time.
- Storage Required: 3*N+2 values.
- Update Complexity: roughly 3*N+2 additions and multiplies.
- Finalize Complexity: Inverting a (N+1)x(N+1) matrix and multiplying by a vector to get polynomial coefficients.
- Simple C++ code and HTML5 demo at bottom!
http://blog.demofox.org/2016/12/22/incremental-least-squares-curve-fitting/
Tags: #christmas #break #challenge
http://www.fluentcpp.com/2016/12/19/can-you-write-expressive-code-christmas-break-challenge/
Tags: #algorithm #psquare
It turns out the discrepancy was due to a typo in the original paper and not in the Boost.Accumulators implementation as I had originally suspected.
https://www.nu42.com/2016/12/p-square-boost-accumulators-fine.html
Send your project/repo/guide/tutorial to @dailycppbot (the bot can't reply to you, and don't send spam)
Читать полностью…Tags: #cpp17 #feature #lambdas
https://www.reddit.com/r/cpp/comments/5irdg1/a_nice_c17_feature_that_is_being_overlooked/
Tags: #templates #constexpr #ifdef
https://tartanllama.github.io/c++/2016/12/12/if-constexpr/
Tags: #objects #lambdas
https://vittorioromeo.info/index/blog/capturing_perfectly_forwarded_objects_in_lambdas.html
Tags: #howto #writing #fast #code
I’m about to show you some of the fastest code there is.
http://blog.demofox.org/2016/12/06/the-secret-to-writing-fast-code-how-fast-code-gets-slow/
Tags: #cpp17 #tranformation #code #improve
"I've spent a bit of time today updating my own basic windowing library to use C++17 features. Some of the things have been simple transforms such as converting 'typedef' to 'using', others have been more OCD satisfying;"
http://www.gamedev.net/blog/42/entry-2262470-c-17-transformation/
Tags: #howto #pvsstudio #free
How to use pvsstudio free
http://www.viva64.com/en/b/0457/
Tags: #cpp17 #best
http://www.levelofindirection.com/journal/2016/12/28/c17-why-its-better-than-you-might-think.html
Tags: #quantifiers #metaprogramming #concepts
https://ngathanasiou.wordpress.com/2016/12/18/quantifiers-metaprogramming-and-concepts/
Tags: #christmas #humor
http://www.commitstrip.com/en/2016/12/25/meanwhile-on-christmas-day/
Merry Christmas!!
Tags: #conan #whatisit
I was well aware of conan’s existence, but I haven’t used it and I was a bit sceptical after biicode died.
http://szelei.me/conan/
Tags: #optional #interfaces
http://www.fluentcpp.com/2016/11/24/clearer-interfaces-with-optionalt/
Tags: #qt #signal #slot
https://nidomiro.de/2016/12/qt-signals-and-slots-how-they-work/
Tags: #intellij #clion #debug #linux #video
https://blog.jetbrains.com/clion/2016/12/webinar-recording-debugging-cc-applications-on-linux-in-clion-from-basics-to-reverse-debug/
Tags: #memory #performance #unique_ptr #shared_ptr
C++11 offers four different smart pointers.
http://www.modernescpp.com/index.php/memory-and-performance-overhead-of-smart-pointer
Tags: #qtcreator #newrelease
http://blog.qt.io/blog/2016/11/30/qt-creator-4-2-rc1-released/
Tags: #meetings #world #cpp #december
https://meetingcpp.com/index.php/newsreader/items/c-user-group-meetings-in-december-2016.html