Click here to Skip to main content
15,898,724 members
Please Sign up or sign in to vote.
1.00/5 (3 votes)
See more:
Hi, what does "::" mean in c++, as in following example?

setLayout (bb::cascades::ListLayout *layout)
Posted
Updated 22-Jun-18 18:31pm
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    
:-)

 
Share this answer
 
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.
dear friend
it called "scop resolution" for accessing to the sub class or struc or even an object items.
 
Share this answer
 
In layman's terms... it identifies something as being a component of the class on the left of the operator.

In this example...
C++
bb::cascades::ListLayout

"ListLayout" is a variable/class type (or struct) identified as part of "cascades" which is in turn part of "bb".
 
Share this answer
 

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900