J
Jonathan Lee
So I think I've seen somewhere that you can access a class-scoped
typedef via the dot operator, like other members. For example,
std::vector<double> v;
/* do something with v.value_type */
The thing is, I can't seem to actually do anything with it. Can't take
the size of it, can't construct a variable, etc. But the compiler
errors suggest it's actually figuring out that I *mean*
std::vector<double>::value_type. What can you actually accomplish with
this notation? Or is it even valid?
--Jonathan
typedef via the dot operator, like other members. For example,
std::vector<double> v;
/* do something with v.value_type */
The thing is, I can't seem to actually do anything with it. Can't take
the size of it, can't construct a variable, etc. But the compiler
errors suggest it's actually figuring out that I *mean*
std::vector<double>::value_type. What can you actually accomplish with
this notation? Or is it even valid?
--Jonathan