You can not. The standard offers several less good alternatives:
Now from the least polluting to the most polluting .
typedef
allows you to write this alias in the private
section of your class definition:
But you can also use it singly globally, but with the ability to rename it:
You can also namespace alias:
Or you can cherry-pick characters from other namespaces, with the disadvantage that your Frob
may collide with another Frob
in your translation module:
Just for completeness, the most polluting solution is using namespace
.
Please note that III, IV and V can also be limited to your cxx file, for example, in the Schwarzschild example.
Sebastian mach
source share