G
Gary Wessle
Hi
I read some where about the order variables are declared in a class
may help space optimization.
find the size of bits a variable takes and declare them from biggest
to the lowest.
so in my system that would be.
double
int
string
char
bool
is the principle correct? if so, then at the top of the list should be
things like
vector<double>
vector<int>
....
and same for map(s) and so on...
but what about function declaration?
where do then fit, what is the size of a function declaration?
thanks
I read some where about the order variables are declared in a class
may help space optimization.
find the size of bits a variable takes and declare them from biggest
to the lowest.
so in my system that would be.
double
int
string
char
bool
is the principle correct? if so, then at the top of the list should be
things like
vector<double>
vector<int>
....
and same for map(s) and so on...
but what about function declaration?
where do then fit, what is the size of a function declaration?
thanks