Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C++
Hi, what does "::" mean in c++, as in following example?
 
setLayout (bb::cascades::ListLayout *layout)
Posted 30-Jan-13 12:19pm
Edited 30-Jan-13 12:27pm
v2
Comments
Sergey Alexandrovich Kryukov at 30-Jan-13 17:58pm
   
What, reading documentation is not for you, is it? :-)
—SA
CPallini at 30-Jan-13 18:17pm
   
It means: "we have nested namespaces and we're proud of them".
Albert Holguin at 4-Feb-13 12:57pm
   
lol, I like your explanation
CPallini at 5-Feb-13 3:29am
   
:-)
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

  Permalink  
Comments
Matthew Faithfull at 30-Jan-13 17:32pm
   
It so is.
Sergey Alexandrovich Kryukov at 30-Jan-13 17:57pm
   
Oh! my 5 :-)
—SA
CPallini at 30-Jan-13 18:17pm
   
5.
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

dear friend
it called "scop resolution" for accessing to the sub class or struc or even an object items.
  Permalink  
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 3

In layman's terms... it identifies something as being a component of the class on the left of the operator.
 
In this example...
bb::cascades::ListLayout
"ListLayout" is a variable/class type (or struct) identified as part of "cascades" which is in turn part of "bb".
  Permalink  

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 Peter Leow 255
1 Mika Wendelius 240
2 CHill60 195
3 TheRealSteveJudge 180
4 Zoltán Zörgő 178
0 Sergey Alexandrovich Kryukov 8,658
1 OriginalGriff 6,591
2 Peter Leow 3,982
3 Zoltán Zörgő 3,604
4 Richard MacCutchan 2,510


Advertise | Privacy | Mobile
Web02 | 2.8.150123.1 | Last Updated 4 Feb 2013
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100