[#mp_units-reflect_in_range]
= xref:mp_units.adoc[mp&lowbar;units]::reflect&lowbar;in&lowbar;range
:relfileprefix: ../
:mrdocs:

Policy that reflects (folds) the value at both boundaries&period;

== Synopsis

Declared in `&lt;mp&hyphen;units&sol;overflow&lowbar;policies&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;xref:mp_units/Quantity.adoc[Quantity] Q&gt;
struct reflect&lowbar;in&lowbar;range;
----

== Description

Values that exceed &lsqb;min, max&rsqb;are &quot;bounced back&quot; from the boundary&period; For example, with latitude[&hyphen;90, 90]&colon; 91 &hyphen;&gt; 89, 180 &hyphen;&gt; 0, 270 &hyphen;&gt; &hyphen;90&period;

== Member Functions

[cols=1]
|===
| Name
| xref:mp_units/reflect_in_range/operator_call.adoc[`operator()`] 
|===

== Data Members

[cols=1]
|===
| Name
| xref:mp_units/reflect_in_range/max.adoc[`max`] 
| xref:mp_units/reflect_in_range/min.adoc[`min`] 
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
