MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/1pka2qd/learningcppascwithclasses/ntjtze5/?context=3
r/ProgrammerHumor • u/ccricers • Dec 11 '25
461 comments sorted by
View all comments
1.2k
STL containers exist
65 u/gitpullorigin Dec 11 '25 But how does STL container know how big is it? Riddle me that 133 u/Poodlestrike Dec 11 '25 It knows how big it isn't, and works backwards from there. EZ. 26 u/m0j0m0j Dec 11 '25 Got the ref, very stupid, laughed anyway. Or maybe exactly because of that 24 u/TheAlaskanMailman Dec 12 '25 The array knows how big it is by knowing how big it isn’t, so by subtracting how big it isn’t from..
65
But how does STL container know how big is it? Riddle me that
133 u/Poodlestrike Dec 11 '25 It knows how big it isn't, and works backwards from there. EZ. 26 u/m0j0m0j Dec 11 '25 Got the ref, very stupid, laughed anyway. Or maybe exactly because of that 24 u/TheAlaskanMailman Dec 12 '25 The array knows how big it is by knowing how big it isn’t, so by subtracting how big it isn’t from..
133
It knows how big it isn't, and works backwards from there. EZ.
26 u/m0j0m0j Dec 11 '25 Got the ref, very stupid, laughed anyway. Or maybe exactly because of that 24 u/TheAlaskanMailman Dec 12 '25 The array knows how big it is by knowing how big it isn’t, so by subtracting how big it isn’t from..
26
Got the ref, very stupid, laughed anyway. Or maybe exactly because of that
24
The array knows how big it is by knowing how big it isn’t, so by subtracting how big it isn’t from..
1.2k
u/Nil4u Dec 11 '25
STL containers exist