<!DOCTYPE html><htmllang='en'><head><title>[qty.ref.obs]</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#obs'>[qty.ref]</a></h2><h3><aclass='secnum'style='min-width:80pt'>5.4.9</a> Observers <aclass='abbr_ref'>[qty.ref.obs]</a></h3><divclass='texpara'><divid='lib:reference,get_quantity_spec'><divid='lib:get_quantity_spec,reference'><divclass='itemdecl'><divclass='marginalizedparent'><aclass='itemDeclLink'href='#lib:get_quantity_spec,reference'>🔗</a></div><codeclass='itemdeclcode'><spanclass='keyword'>template</span><spanclass='anglebracket'><</span><spanclass='keyword'>typename</span> Q, <spanclass='keyword'>typename</span> U<spanclass='anglebracket'>></span>
</code></div></div></div></div><divclass='para'id='1'><divclass='marginalizedparent'><aclass='marginalized'href='#1'>1</a></div><divclass='itemdescr'><divclass='sourceLinkParent'><aclass='sourceLink'href='https://github.com/mpusz/mp-unitse9c5f7236ebfe1b287a5a4a49aaf57fbefa87233/source/quantities.tex#L3608'>#</a></div><divclass='texpara'><divid='1.sentence-1'class='sentence'><i>Returns</i>: <spanclass='texttt'>Q<spanclass='curlybracket'>{</span><spanclass='curlybracket'>}</span></span><aclass='hidden_link'href='#1.sentence-1'>.</a></div></div></div></div><divclass='texpara'><divid='lib:reference,get_unit'><divid='lib:get_unit,reference'><divclass='itemdecl'><divclass='marginalizedparent'><aclass='itemDeclLink'href='#lib:get_unit,reference'>🔗</a></div><codeclass='itemdeclcode'><spanclass='keyword'>template</span><spanclass='anglebracket'><</span><spanclass='keyword'>typename</span> Q, <spanclass='keyword'>typename</span> U<spanclass='anglebracket'>></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#L3634'>#</a></div><divclass='texpara'><divid='3.sentence-1'class='sentence'><i>Returns</i>: <spanclass='texttt'>get_<spanclass='shy'></span>common_<spanclass='shy'></span>unit<spanclass='parenthesis'>(</span>u1, u2, rest<spanclass='operator'>.</span><spanclass='operator'>.</span><spanclass='operator'>.</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#L3638'>#</a></div><divclass='texpara'><divid='4.sentence-1'class='sentence'><i>Remarks</i>: The expression in the <spanclass='textsf'><i>requires-clause</i></span> is equivalent to:
</span></div></div></div></div><divclass='para'id='6'><divclass='marginalizedparent'><aclass='marginalized'href='#6'>6</a></div><divclass='itemdescr'><divclass='sourceLinkParent'><aclass='sourceLink'href='https://github.com/mpusz/mp-unitse9c5f7236ebfe1b287a5a4a49aaf57fbefa87233/source/quantities.tex#L3666'>#</a></div><divclass='texpara'><divid='6.sentence-1'class='sentence'><i>Remarks</i>: The expression in the <spanclass='textsf'><i>requires-clause</i></span> is equivalent to: