diff options
Diffstat (limited to 'public/posts/2021-10-02/cpp-you-can-use-keywords-in-attributes/index.html')
| -rw-r--r-- | public/posts/2021-10-02/cpp-you-can-use-keywords-in-attributes/index.html | 33 |
1 files changed, 8 insertions, 25 deletions
diff --git a/public/posts/2021-10-02/cpp-you-can-use-keywords-in-attributes/index.html b/public/posts/2021-10-02/cpp-you-can-use-keywords-in-attributes/index.html index 39ab3cd..98c9e3c 100644 --- a/public/posts/2021-10-02/cpp-you-can-use-keywords-in-attributes/index.html +++ b/public/posts/2021-10-02/cpp-you-can-use-keywords-in-attributes/index.html @@ -107,15 +107,10 @@ std::cout << <span class="hljs-string">"Hello, World!"</span> &l <blockquote> <ul> <li> - <p> - the identifiers that are keywords cannot be used for other purposes; - </p> - + the identifiers that are keywords cannot be used for other purposes; <ul> <li> - <p> - The only place they can be used as non-keywords is in an attribute-token. (e.g. [[private]] is a valid attribute) (since C++11) - </p> + The only place they can be used as non-keywords is in an attribute-token. (e.g. [[private]] is a valid attribute) (since C++11) </li> </ul> </li> @@ -161,39 +156,27 @@ std::cout << <span class="hljs-string">"Hello, World!"</span> &l <ul> <li> - <p> - <code><%</code>→<code>{</code> - </p> + <code><%</code>→<code>{</code> </li> <li> - <p> - <code>%></code>→<code>}</code> - </p> + <code>%></code>→<code>}</code> </li> <li> - <p> - <code><:</code>→<code>[</code> - </p> + <code><:</code>→<code>[</code> </li> <li> - <p> - <code>:></code>→<code>]</code> - </p> + <code>:></code>→<code>]</code> </li> <li> - <p> - <code>%:</code>→<code>#</code> - </p> + <code>%:</code>→<code>#</code> </li> <li> - <p> - <code>%:%:</code>→<code>##</code> - </p> + <code>%:%:</code>→<code>##</code> </li> </ul> |
