Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.c++ > #37144
| From | red floyd <no.spam@its.invalid> |
|---|---|
| Newsgroups | comp.lang.c++ |
| Subject | Re: :: scope resolution operator |
| Date | 2015-07-17 10:08 -0700 |
| Organization | A noiseless patient Spider |
| Message-ID | <mobco2$3en$1@dont-email.me> (permalink) |
| References | <14c114ae-8a88-4f58-88b1-3811852ef9b6@googlegroups.com> |
On 7/17/2015 9:52 AM, Doug Mika wrote:
> Hi to all
>
> I have been reading about C++ for a while, but I must admit, that one of the things that I find confusing is all the instances when you use the scope resolution operator ::. Namespaces, inheritence, etc...
>
> So it begs the question, when we write vector<int>::const_iterator myIterator
> can I deduce from this that const_iterator is an inner class of vector<int> class? Is it?
>
No. It is a *typename* that is defined within vector<int>. It is not
necessarily an inner class.
Example:
class A {
public:
typedef int integral_type;
};
A::integral_type x = 0;
x is of type int.
Back to comp.lang.c++ | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
:: scope resolution operator Doug Mika <dougmmika@gmail.com> - 2015-07-17 09:52 -0700
Re: :: scope resolution operator red floyd <no.spam@its.invalid> - 2015-07-17 10:08 -0700
Re: :: scope resolution operator Doug Mika <dougmmika@gmail.com> - 2015-07-17 11:10 -0700
Re: :: scope resolution operator Paavo Helde <myfirstname@osa.pri.ee> - 2015-07-17 14:16 -0500
Re: :: scope resolution operator Öö Tiib <ootiib@hot.ee> - 2015-07-17 12:27 -0700
Re: :: scope resolution operator Jorgen Grahn <grahn+nntp@snipabacken.se> - 2015-07-17 18:51 +0000
Re: :: scope resolution operator Louis Krupp <lkrupp@nospam.pssw.com.invalid> - 2015-07-19 04:49 -0600
Re: :: scope resolution operator legalize+jeeves@mail.xmission.com (Richard) - 2015-07-20 18:59 +0000
Re: :: scope resolution operator red floyd <no.spam.here@its.invalid> - 2015-07-21 08:19 -0700
csiph-web