<!DOCTYPE html><htmllang='en'><head><title>[qty.val.traits]</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.5</a> Representation <aclass='abbr_ref'href='qty.rep.html#qty.val.traits'>[qty.rep]</a></h2><h3><aclass='secnum'style='min-width:80pt'>5.5.2</a> Traits <aclass='abbr_ref'href='qty.rep.traits.html#qty.val.traits'>[qty.rep.traits]</a></h3><h4><aclass='secnum'style='min-width:95pt'>5.5.2.3</a> Values <aclass='abbr_ref'>[qty.val.traits]</a></h4><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#L3758'>#</a></div><divclass='texpara'><divid='1.sentence-1'class='sentence'><spanclass='texttt'>quantity</span> and <spanclass='texttt'>quantity_<spanclass='shy'></span>point</span> use <spanclass='texttt'>representation_<spanclass='shy'></span>values</span>
to construct special values of its representation type<aclass='hidden_link'href='#1.sentence-1'>.</a></div></div><divclass='texpara'><spanclass='codeblock'><spanclass='keyword'>namespace</span> mp_units <spanclass='curlybracket'>{</span>
also apply to <spanclass='texttt'>representation_<spanclass='shy'></span>values<spanclass='anglebracket'><</span>Rep<spanclass='anglebracket'>></span></span><aclass='hidden_link'href='#2.sentence-1'>.</a></div></div></div><divclass='texpara'><divclass='itemdecl'id='itemdecl:1'><divclass='marginalizedparent'><aclass='itemDeclLink'href='#itemdecl:1'>🔗</a></div><codeclass='itemdeclcode'><spanclass='keyword'>static</span><spanclass='keyword'>constexpr</span> Rep one<spanclass='parenthesis'>(</span><spanclass='parenthesis'>)</span><spanclass='keyword'>noexcept</span>;
</code></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#L3782'>#</a></div><divclass='texpara'><divid='3.sentence-1'class='sentence'><i>Returns</i>: <spanclass='texttt'>Rep<spanclass='parenthesis'>(</span><spanclass='literal'>1</span><spanclass='parenthesis'>)</span></span><aclass='hidden_link'href='#3.sentence-1'>.</a></div></div></div></div><divclass='para'id='4'><divclass='marginalizedparent'><aclass='marginalized'href='#4'>4</a></div><divclass='itemdescr'><divclass='sourceLinkParent'><aclass='sourceLink'href='https://github.com/mpusz/mp-unitse9c5f7236ebfe1b287a5a4a49aaf57fbefa87233/source/quantities.tex#L3786'>#</a></div><divclass='texpara'><divid='4.sentence-1'class='sentence'><i>Remarks</i>: The value returned shall be the neutral element for multiplication (<ahref="https://www.electropedia.org/iev/iev.nsf/display?openform&ievref=102-01-19">IEC 60050, 102-01-19</a>)<aclass='hidden_link'href='#4.sentence-1'>.</a></div></div></div></div></div></body></html>