<!DOCTYPE html><htmllang='en'><head><title>[qty.prefixed.unit]</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.prefixed.unit'>[qty.ref]</a></h2><h3><aclass='secnum'style='min-width:80pt'>5.4.4</a> Unit <aclass='abbr_ref'href='qty.unit.html#qty.prefixed.unit'>[qty.unit]</a></h3><h4><aclass='secnum'style='min-width:95pt'>5.4.4.5</a> Types <aclass='abbr_ref'href='qty.unit.types.html#qty.prefixed.unit'>[qty.unit.types]</a></h4><h4><aclass='secnum'style='min-width:110pt'>5.4.4.5.4</a> Prefixed <aclass='abbr_ref'>[qty.prefixed.unit]</a></h4><divclass='texpara'><spanid='lib:prefixed_unit'><divclass='marginalizedparent'><aclass='itemDeclLink'href='#lib:prefixed_unit'>🔗</a></div><spanclass='codeblock'><spanclass='keyword'>namespace</span> mp_units <spanclass='curlybracket'>{</span>
<spanclass='keyword'>template</span><spanclass='anglebracket'><</span>symbol_text Symbol, <ahref='qty.unit.mag.concepts.html#concept:UnitMagnitude'title='5.4.4.2.2 Concepts [qty.unit.mag.concepts]'><spanid='conceptref:UnitMagnitude'><spanclass='tcode_in_codeblock'>UnitMagnitude</span></span></a><spanclass='keyword'>auto</span> M, <ahref='qty.unit.concepts.html#concept:PrefixableUnit'title='5.4.4.4 Concepts [qty.unit.concepts]'><spanid='conceptref:PrefixableUnit'><spanclass='tcode_in_codeblock'>PrefixableUnit</span></span></a><spanclass='keyword'>auto</span> U<spanclass='anglebracket'>></span>
</span></span></div><divclass='para'id='1'><divclass='marginalizedparent'><aclass='marginalized'href='#1'>1</a></div><divclass='sourceLinkParent'><aclass='sourceLink'href='https://github.com/mpusz/mp-unitse9c5f7236ebfe1b287a5a4a49aaf57fbefa87233/source/quantities.tex#L2777'>#</a></div><divclass='texpara'><divid='1.sentence-1'class='sentence'><spanclass='texttt'>prefixed_<spanclass='shy'></span>unit<spanclass='anglebracket'><</span>Symbol, M, U<spanclass='anglebracket'>></span></span> represents the unit <spanclass='texttt'>U</span> with a unit prefix (<ahref="https://www.electropedia.org/iev/iev.nsf/display?openform&ievref=112-01-26">IEC 60050, 112-01-26</a>)<aclass='hidden_link'href='#1.sentence-1'>.</a></div><divid='1.sentence-2'class='sentence'><spanclass='texttt'>Symbol</span> is the symbol of the unit prefix<aclass='hidden_link'href='#1.sentence-2'>.</a></div><divid='1.sentence-3'class='sentence'><spanclass='texttt'>M</span> is the factor of the unit prefix<aclass='hidden_link'href='#1.sentence-3'>.</a></div><divid='1.sentence-4'class='sentence'>A specialization of <spanclass='texttt'>prefixed_<spanclass='shy'></span>unit</span> is used as a base type when defining a unit prefix<aclass='hidden_link'href='#1.sentence-4'>.</a></div><divid='example-1'class='example'><divclass='texpara'>[<i>Example <ahref='#example-1'>1</a></i>: <spanclass='codeblock'><spanclass='keyword'>template</span><spanclass='anglebracket'><</span><ahref='qty.unit.concepts.html#concept:PrefixableUnit'title='5.4.4.4 Concepts [qty.unit.concepts]'><spanid='conceptref:PrefixableUnit_'><spanclass='tcode_in_codeblock'>PrefixableUnit</span></span></a><spanclass='keyword'>auto</span> U<spanclass='anglebracket'>></span>