What does uint
means in c++ while the declaration of a variable in class?
See here for the referance.
Is it part of a c++ library such as eigen/core
?
Does that mean unassigned int?
I searched on google but could not find anything concrete.
What does uint
means in c++ while the declaration of a variable in class?
See here for the referance.
Is it part of a c++ library such as eigen/core
?
Does that mean unassigned int?
I searched on google but could not find anything concrete.
It means whatever the author decided it means!
uint
is not part of C++, so it must come from one of the libraries used by that code. Some Googling tells us that it is indeed Eigen.
By convention, it's an unsigned integer type, probably one without a fixed width, so unsigned int
.
The u
in uint
stands for unsigned, so uint
is an unsigned int
, whose value will be >= 0.
in C++ there isn't any type defined as uint
but it must be a typedef of your library that you're using and it's intuitive that u
prefix before an int means unsigned integer example uint8_t
, uint32_t
etc.
here is how it might be defined
typedef unsigned int unit;