[#mp_units-tensor_order-0b]
= xref:mp_units.adoc[mp&lowbar;units]::tensor&lowbar;order
:relfileprefix: ../
:mrdocs:

Structural detection of `tensor&lowbar;order` for a type exposing exactly one indexing shape&period;

== Synopsis

Declared in `&lt;mp&hyphen;units&sol;framework&sol;customization&lowbar;points&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;typename T&gt;
requires (!detail&colon;&colon;has&lowbar;ambiguous&lowbar;order&lt;T&gt;)
constexpr std::size&lowbar;t tensor&lowbar;order = detail&colon;&colon;has&lowbar;matrix&lowbar;indexing&lt;T&gt;   ? std&colon;&colon;size&lowbar;t&lcub;2&rcub;
                                        &colon; detail&colon;&colon;has&lowbar;vector&lowbar;indexing&lt;T&gt; ? std&colon;&colon;size&lowbar;t&lcub;1&rcub;
                                                                         &colon; std&colon;&colon;size&lowbar;t&lcub;0&rcub;;
----

== Template Parameters

[cols="1,4"]
|===
| Name| Description
| *T*
| the representation type
|===


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