auto was a keyword that C++ "inherited" from C that had been there nearly forever, but virtually never used because there were only two possible conditions: either it wasn't allowed, or else it was assumed by default.
s*n
3 楼
for (const auto & i : some_container) {
【在 z****e 的大作中提到】 : auto was a keyword that C++ "inherited" from C that had been there nearly : forever, but virtually never used because there were only two possible : conditions: either it wasn't allowed, or else it was assumed by default.
L*8
4 楼
你懂c++吗?
【在 z****e 的大作中提到】 : auto was a keyword that C++ "inherited" from C that had been there nearly : forever, but virtually never used because there were only two possible : conditions: either it wasn't allowed, or else it was assumed by default.