Click here to Skip to main content
12,446,525 members (56,635 online)
Rate this:
 
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
Updated 30-Jan-13 11:27am
v2
Comments
Sergey Alexandrovich Kryukov 30-Jan-13 17:58pm
   
What, reading documentation is not for you, is it? :-)
—SA
CPallini 30-Jan-13 18:17pm
   
It means: "we have nested namespaces and we're proud of them".
Albert Holguin 4-Feb-13 12:57pm
   
lol, I like your explanation
CPallini 5-Feb-13 3:29am
   
:-)
Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 1

  Permalink  
Comments
Matthew Faithfull 30-Jan-13 17:32pm
   
It so is.
Sergey Alexandrovich Kryukov 30-Jan-13 17:57pm
   
Oh! my 5 :-)
—SA
CPallini 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
Top Experts
Last 24hrsThis month


Advertise | Privacy | Mobile
Web02 | 2.8.160811.3 | Last Updated 4 Feb 2013
Copyright © CodeProject, 1999-2016
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