Here’s an example CMakeLists.txt, where I set up a unit test target, using the GTest framework: The above should get you going with unit testing,
I used Xcode and loved the static analyzer. Then I switched to Visual Studio Code to do my C++ programming and wanted the static analysis
Once. Only once have I done this. I had to traverse a std::vector in reverse, and at some point, I had to call std::erase. I
I’m quite fascinated with the image that the Mandelbrot Set produces, but admittedly, I didn’t understand how to implement the function from the description on
Another way to increment an iterator, and preferred if you’re using std::move in your code, is to use std::next over ++. Here’s an example: Now,
This is a compile time utility, which replaces macros like FILE and LINE. I’m partial to using functions over macros, and this compile time utility
More specially, a file path where we are trying to remove .. and . So, if you have “projects/vectorization/../gitstuff/./../../something/index.html” canonicalizing the string would reduce it
This is an interesting template function, defined in , which moves elements of a container class, much in the same way when you rotate the
There have been a few times that I needed 2 vectors to be … merged… and they had to be ordered. It’s simple when you