Economically this is not at all what happened though. The baby boomer generation was simply exceptionally lucky, economically speaking. Gen X and Y are still in the very lucky category. Compared to the generation that actually went to war, we still have it much better economically.
Unfortunately that mostly means that our kids will likely have it worse, not better. Starting with baby boomers we simply had too few children to keep growing GDP. GDP, and economic activity in general shows a remarkable and extremely direct relation to two things : total amount of energy used, and total amount of people. For the first time in over 70 years, both are stagnating, slowly.
And it's too late : to fix the population growth rate, gen X should have been having lots of kids one to two decades ago, and that has decidedly not happened. For the foreseeable future, we'll have to do more with less, both in terms of energy, but especially in terms of labor available.
You might say "but machine learning", "but robots", etc. Well that's exactly what they said in the 80s with the car plant closings. That was patently false. Then they said it again with Japan crashing and then stagnating. Again, not true. Now we're saying it about ourselves (but doubly so for China). I don't think this time it will be right either.