Re: Hiding implementation of types in classes?

From: Siemel Naran (SiemelNaran_at_REMOVE.att.net)
Date: 03/25/04


Date: Thu, 25 Mar 2004 22:04:50 GMT


"Dmitry Epstein" <mitia.nospam@northwestern.edu.invalid> wrote in message
> "Siemel Naran" <SiemelNaran@REMOVE.att.net> wrote in

> > class MyClass {
> > typedef std::vector<int> Vector;
> > public:
> > typedef Vector::size_type size_type;
> > private:
> > Vector v;
>
> Ah, that's a good one. I forgot that you could have more than one
> private section in a class. As a matter of style, I always put the
> public section first.

Me too, except for typedefs required in the the public or protected
sections. Data members always declared at the end.



Relevant Pages


Loading