<!DOCTYPE html><htmllang='en'><head><title>[qty.dim.sym.fmt]</title><metacharset='UTF-8'/><linkrel='stylesheet'type='text/css'href='14882.css'/><linkrel='stylesheet'type='text/css'href='https://fonts.googleapis.com/css2?family=Noto+Serif'/><linkrel='stylesheet'type='text/css'href='https://fonts.googleapis.com/css2?family=Noto+Sans'/><linkrel='stylesheet'type='text/css'href='https://fonts.googleapis.com/css2?family=Noto+Sans+Mono'/><linkrel='icon'href='icon.png'/><linkrel='stylesheet'type='text/css'href='expanded.css'title='Normal'/><linkrel='alternate stylesheet'type='text/css'href='colored.css'title='Notes and examples colored'/><linkrel='alternate stylesheet'type='text/css'href='normative-only.css'title='Notes and examples hidden'/></head><body><divclass='wrapper'><h1><aclass='secnum'style='min-width:50pt'>5</a> Quantities and units library <aclass='abbr_ref'href='index.html#quantities'>[quantities]</a></h1><h2><aclass='secnum'style='min-width:65pt'>5.4</a> Reference <aclass='abbr_ref'href='qty.ref.html#qty.dim.sym.fmt'>[qty.ref]</a></h2><h3><aclass='secnum'style='min-width:80pt'>5.4.2</a> Dimension <aclass='abbr_ref'href='qty.dim.html#sym.fmt'>[qty.dim]</a></h3><h4><aclass='secnum'style='min-width:95pt'>5.4.2.5</a> Symbol formatting <aclass='abbr_ref'>[qty.dim.sym.fmt]</a></h4><divclass='texpara'><divid='lib:Dimension,dimension_symbol_to'><divid='lib:dimension_symbol_to,Dimension'><divclass='itemdecl'><divclass='marginalizedparent'><aclass='itemDeclLink'href='#lib:dimension_symbol_to,Dimension'>🔗</a></div><codeclass='itemdeclcode'><spanclass='keyword'>template</span><spanclass='anglebracket'><</span><spanclass='keyword'>typename</span> CharT <spanclass='operator'>=</span><spanclass='keyword'>char</span>, std<spanclass='operator'>::</span>output_iterator<spanclass='anglebracket'><</span>CharT<spanclass='anglebracket'>></span> Out, <ahref='qty.dim.concepts.html#concept:Dimension'title='5.4.2.2 Concepts [qty.dim.concepts]'><spanid='conceptref:Dimension'><spanclass='texttt'>Dimension</span></span></a> D<spanclass='anglebracket'>></span>
<spanclass='keyword'>constexpr</span> Out dimension_symbol_to<spanclass='parenthesis'>(</span>Out out, D d, <spanclass='keyword'>const</span> dimension_symbol_formatting<spanclass='operator'>&</span> fmt <spanclass='operator'>=</span><spanclass='curlybracket'>{</span><spanclass='curlybracket'>}</span><spanclass='parenthesis'>)</span>;
</code></div></div></div></div><divclass='para'id='3'><divclass='marginalizedparent'><aclass='marginalized'href='#3'>3</a></div><divclass='itemdescr'><divclass='sourceLinkParent'><aclass='sourceLink'href='https://github.com/mpusz/mp-unitse9c5f7236ebfe1b287a5a4a49aaf57fbefa87233/source/quantities.tex#L1552'>#</a></div><divclass='texpara'><divid='3.sentence-1'class='sentence'><i>Effects</i>: Equivalent to: