Recently, I saw a strange C++ feature: injected class name.
class X { };
X x1;
class X::X x2; // class X::X is equal to X
class X::X::X x3; // ...and so on...
But I cannot figure out why this feature is necessary. Is there any practice that requires this feature?
And I heard this feature didn't exist in old C++. Then, when was it introduced? C++03? C++11?
Your Answer
0 answers
Hot tools Tags
Hot Questions
How can I decrypt a password hash in PHP?
2026-01-01 22:43:28
Is the return type part of the function signature?
2026-01-01 22:22:55
How to scroll to an element?
2026-01-01 22:01:13
Play/pause HTML 5 video using JQuery
2026-01-01 21:43:51
Popular tool
vc9-vc14 (32+64 bit) runtime library collection (link below)
Download the collection of runtime libraries required for phpStudy installation
VC9 32-bit
VC9 32-bit phpstudy integrated installation environment runtime library
PHP programmer toolbox full version
Programmer Toolbox v1.0 PHP Integrated Environment
VC11 32-bit
VC11 32-bit phpstudy integrated installation environment runtime library
SublimeText3 Chinese version
Chinese version, very easy to use
Hot Topics
Douyin level price list 1-75
20416
7
20416
7
wifi shows no ip assigned
13574
4
13574
4
Hot Article
What is the 'basis' of a currency contract? What impact does it have on perpetual contract prices?
2025-12-26
By DDD
How to set up price alerts so you don't miss key entry points?
2026-01-01
By DDD
Tutorial on existence check of nested array values in PHP multidimensional array
2025-12-28
By DDD
How to draw dotted lines in PS How to draw various dotted lines in PS
2025-12-28
By DDD






