Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |
Tags
- 부분공간
- turtlebot3
- ROS
- Linux
- ubuntu
- 촉각센서
- autorace
- roslaunch
- error
- rqt
- G++
- CuDNN
- Kinetic
- RGB-D
- sources.list
- FreeCAD
- ax200
- Gazebo
- CUDA
- darknet_ros
- opencv
- roslib
- Installation
- amcl
- turtlebot
- 전이학습
- YoLO
- linetracing
- webots
- gcc
Archives
- Today
- Total
기술 성공, 실패 기록소
What does a leading :: mean in “using namespace ::X” in C++ 본문
728x90
stackoverflow.com/questions/6790087/what-does-a-leading-mean-in-using-namespace-x-in-c/6790101
What does a leading :: mean in "using namespace ::X" in C++
can somebody explain me the difference between the following namespace usages: using namespace ::layer::module; and using namespace layer::module; What causes the additional :: before layer?
stackoverflow.com
stackoverflow.com/questions/4665264/the-namespace-starts-with-in-c
The namespace starts with :: in C++
Possible Duplicate: What's the purpose of a leading “::” in a C++ method call This gtest has the example code. ::testing::AssertionResult IsEven(int n) { if ((n % 2) == 0)
stackoverflow.com
제일 앞의 ::은 global namespace 라는 것을 의미한다.
'프로그래밍언어 > C++' 카테고리의 다른 글
열거형, enum (0) | 2020.11.03 |
---|---|
구조체 생성자. (0) | 2020.11.03 |
구조체 structure (0) | 2020.11.03 |
namespace (0) | 2020.11.03 |
템플릿, template (0) | 2020.11.03 |