T
toton
Hi,
I have some container class with type parameters. As the names are
going big, thus I am using some typedefs for the containers.
like typedef vector<PointTangent> PointTangentVector; etc.
This is done just to increase readability in some cases (mostly when
using template with type parameters which are frequently used).
1) Is it cause any overhead? or compiler just substitutes the typedef
with the actual type (i.e it is just an alias of the type). Any other
herm is there?
2) Is it a good practice?
thanks
I have some container class with type parameters. As the names are
going big, thus I am using some typedefs for the containers.
like typedef vector<PointTangent> PointTangentVector; etc.
This is done just to increase readability in some cases (mostly when
using template with type parameters which are frequently used).
1) Is it cause any overhead? or compiler just substitutes the typedef
with the actual type (i.e it is just an alias of the type). Any other
herm is there?
2) Is it a good practice?
thanks