The min-max algorithms are relatively simple but offer multiple overloads suitable for different use cases.
In C++11, the std::minmax algorithm was added to std::min and std::max, and all three algorithms received an overload for std::initializer_list.
C++20 introduced corresponding versions in the std::ranges namespace and a new overload that operates on a range.
Leave a comment
ncG1vNJzZmirmaK8r8DOrZ9nq6WXwLWtwqRlnKedZL1wsMCio7Jlkp7BpnnOn2ScZaOpsa61zWaqrZydlsVuv9OdpKKmnZbF
daily stream: how not to get caught
2024-12-03
BRB, just discovered that Thelma & Louise, director Ridley Scott and writer Callie Khouri’s stone-cold 1991 classic, is on BBC iPlayer. I haven’t seen this in absolutely ages, and suddenly I’m dying to see it again right now. This crime adventure, and the badass performances by Susan Sarandon and Geena Davis, definitely played a huge part in my feminist awakening. I was 22 years old the summer this movie was released, and I’m sure I saw it in a cinema, but I have no memory of that.
Many were caught by surprise last week when, on August 8th, the news came out that Johnny Hardwick, best known as the voice actor for Dale Gribble in the hit animated series King of the Hill, had passed away at the age of 64. For many King of the Hill fans, this was an outright tragedy, especially with the news that Mike Judge was considering bringing the series back for a revival on Hulu.
Damien Benveniste | Substack
2024-12-03
Damien BenvenisteI specialize in building large scale end to end Machine Learning capabilities. After a PhD in Physics, I have been a Data Scientist, ML Engineer and Software Engineer for the past 10 years. Until recently, I was a Machine Learning Tech Lead at Meta. ncG1vNJzZmirpZfAta3CpGWcp51kjaWtzKKcp5qVo8Omusisq54%3D
Dan Dan Noodles - by Kristina Cho
2024-12-03
I’ve been asking myself this question for weeks because when I started developing this dan dan noodle recipe I realized that the definition of one varies a lot! I was researching recipes and asking friends how their family makes them and the answers were all over the place. One thing we can agree on is that this dish originates from the Sichuan province. Knowing that, these noodles should be spicy and there should be some Sichuan peppercorns for the lovely numbing effect and piney/zesty flavor.
Dan Yemin of Paint It Black
2024-12-03
I met Dan Yemin in 1992, in front of his parents’ house in New Jersey. I’d just signed up to play guitar with Ressurection for a summer tour across America with Dan’s band, Lifetime, and the ten of us were all called to his driveway one day to build a loft for the rental van. As I mention in our conversation, he struck me as the most “put together” of our lot; he was smart, well-spoken, and truth be told, better at playing guitar than me.
Dan Zanger on Finding the Biggest Movers
2024-12-03
Dan Zanger (@DanZanger on X/Twitter) is the world record holder for the largest % gain in a personal portfolio over both a 12-month and an 18-month time period. So, when it comes to trading, the man clearly knows what he’s talking about.
So, I recently watched, and rewatched, an interview with Zanger from 2005. I’m not sure why I haven’t come across it before, but at least I have now.
Shani Louk was filmed early on Saturday morning, dancing in the desert to a noxious remix of Gymclass Heroes’s already noxious “Cupid’s Chokehold” — dancing with the carefree good cheer of a million other carefree, cheerful dancers in TikToks and Instagram stories across the Internet. If you didn’t know the context — and if you weren’t fortunate enough to know her personally — you would have scrolled on by.
But we know the context.
Dancing with the Guitar Man
2024-12-03
There's no disputing that Duane Eddy was one of rock & roll's first guitar heroes. In the liner notes of Twang Thang: The Duane Eddy Anthology, Rhino's definitive double-disc 1993 compilation, Dan Forte claimed "Rebel Rouser," the guitarist's breakthrough 1958 hit, "almost single-handedly established the institution of the guitar hero," placing the instrument at the forefront of rock at a time when the pounding pianos of Little Richard and Jerry Lee Lewis were as exciting as an overdriven six-string.