We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Documentation lists template parameters twice if a template is forward-declared.
Found at commit b3fc442
template <typename X> struct Unit; template <typename X> struct Unit { T contents; };
It doesn't matter if the forward declaration appears before or after the definition. That is, this produces the same output:
template <typename X> struct Unit { T contents; }; template <typename X> struct Unit;
The text was updated successfully, but these errors were encountered:
It may be worth noting that, if the template parameters have different names at each site, they are accumulated in the order they appear. e.g.
template <typename X> struct Unit; template <typename T> struct Unit {};
is documented as Unit<X, T>.
Unit<X, T>
Sorry, something went wrong.
No branches or pull requests
Documentation lists template parameters twice if a template is forward-declared.
Found at commit b3fc442
Example input
Output
Notes
It doesn't matter if the forward declaration appears before or after the definition. That is, this produces the same output:
The text was updated successfully, but these errors were encountered: