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 11:19am
Edited 30-Jan-13 11:27am
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 Sergey Alexandrovich Kryukov 495
1 OriginalGriff 339
2 ChintanShukla 305
3 Richard Deeming 260
4 RyanDev 230
0 Sergey Alexandrovich Kryukov 8,768
1 OriginalGriff 7,387
2 CPallini 2,603
3 Richard MacCutchan 2,095
4 Abhinav S 1,893


Advertise | Privacy | Mobile
Web03 | 2.8.140827.1 | Last Updated 4 Feb 2013
Copyright © CodeProject, 1999-2014
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