This may be your bread and butter but today I fell into a rabbit hole of optimization questions and found a few things that I wanted to share with you. As someone who did Assembly programming “back in the days” (haven’t touched it in a while now) I am always very distrustful of modern, ease-of-use, generalizations and high(er)-level approaches to foundational concepts. As such whenever presented with something like:
std::vector<int> a = {6, 2, 3, 8, 1, 4};
If I want to go about and get the lowest value I’d typically avoid doing:
Continue reading “C++ under the hood – range-based for loops”
