Without seeing the context, it is a bit difficult to answer, including because it is common for the person explaining what he has read wrong.
I believe I'm just talking about a fixed array type, such as the array of C. It would be an opposition to an array which can be expanded if necessary. You can view more at Difference between std :: list, std :: vector and std :: array .
The question got pretty confusing and what it seemed to ask was not quite what was shown after the comment gave context. The information is still there because it can be useful to someone but what was asked was something else. In the text that was used to generate the doubt, it does not have the term fixed type (fixed type) as shown in the question, it speaks of fixed size type, which is quite different, in> array in the question here has nothing to do with the doubt, it was just about array in question there in Code SE Review. We were misled.
Doubt is about the types that have guaranteed quantity bits. Original in C the primary data types were specified only with minimum size and each implementation of the C language compiler could choose the actual size according to the architecture that it would generate the code, which could give better efficiency. Over time it has been found that in many cases it would be interesting to have types where one knows the exact size to be used. C and C ++ adopted this, but the default was still the exact size type not specified in advance. So these types that came later in the language are called fixed-size types.
It is not recommended to use typedef
in modern C ++, it is better to use using
that the compiler is better prepared, typedef
still works because of the legacy. in this context it is a nickname of types.
Typically, type aliases are used for the sake of readability (to show intention) and to give some flexibility, so you use an abstract type and depending on the% of use you may be different. This example being the same is a coincidence. In programming coincidences do not count, so do not count on them, this context is different from others, you are looking at the photo and not the movie.
It is not recommended to use ALL_CASE notation at all in C ++.