We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b8538e0 commit 7f602c9Copy full SHA for 7f602c9
cppguide.html
@@ -3008,6 +3008,12 @@ <h3 id="Casting">Casting</h3>
3008
value using a different type of the same size (a type pun), such as
3009
interpreting the bits of a <code>double</code> as
3010
<code>int64</code>.</li>
3011
+
3012
+ <li><span class="drake">
3013
+ Use <code>drake::unused(foo)</code> to mark <code>foo</code> as unused
3014
+ for the compiler and anyone else reading your code. Using a C-style cast
3015
+ to <code>void</code> as in <code>(void)foo</code> is also permitted.
3016
+ </span></li>
3017
</ul>
3018
3019
<p>See the <a href="#Run-Time_Type_Information__RTTI_">
0 commit comments