title: How to do template pack expansion with C++11 attribute-list?
body: <p>According to <a href="http://eel.is/c++draft/temp.variadic#5.8" rel="nofollow noreferrer">[temp.variadic#5.8]</a>:</p>
  <blockquote>
  <p>Pack expansions can occur in the following contexts:</p>
  <ul>
  <li>In an <em>attribute-list</em> ([dcl.attr.grammar]); the pattern is an <em>attribute</em>.</li>
  </ul>
  </blockquote>
  <p>which means we can do a pack expansion on <a href="https://en.cppreference.com/w/cpp/language/attributes" rel="nofollow noreferrer"><em>attribute-list</em></a>.</p>
  <p>But I didn’t find any examples about it, and <a href="https://en.cppreference.com/w/cpp/language/parameter_pack" rel="nofollow noreferrer">cppreference</a> only showed a piece of code for it:</p>
  <pre><code>void [[attributes...]] function()
  </code></pre>
  <p>Under what circumstances do we want to do this? And how to do this? Can someone give an example?</p>