1 1
struct Point { int x; int y; }; int main() { auto dir = {-1,0,1}; Point p{5,5}; // Cartesian product representing the 3x3 grid around a center point. for (auto [x, y] : std::views::cartesian_product(dir, dir)) { auto v = Point{p.x+x, p.y+y}; // Iterate...
#cpp #coding #cplusplus #programming #dailybiteofcpp
16h ago
From youtube.com
C++ Tooling Intuition - Kevin Carpenter - C++Online 2024
1 1
The Online C++ Conference - https://cpponline.uk/ -- @cpponlineconf---C++ Tooling Intuition - Kevin Carpenter - C++Online 2024Over the years the tools we use...
#cpp #coding #tooling #cplusplus #programming
on Jun 25
From consteval.ca
I Have No Constructor, and I Must Initialize
1 21
It has been three days. The room is cold and dark, but your screens are blinding. You feel disoriented as you come in and out of dissociative episodes. Now and again, you laugh, to no accompaniment. Why are you here? Was this your fault?
#cpp #cplusplus #programming #initialization
on Fri, 12PM