[#mp_units-cartesian_vector-08-operator_assign-07]
= xref:mp_units.adoc[mp&lowbar;units]::xref:mp_units/cartesian_vector-08.adoc[cartesian&lowbar;vector]::operator&equals;
:relfileprefix: ../../
:mrdocs:

Assignment operator

== Synopsis

Declared in `&lt;mp&hyphen;units&sol;cartesian&lowbar;vector&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;std::convertible&lowbar;to&lt;T&gt; U&gt;
constexpr
xref:mp_units/cartesian_vector-08.adoc[cartesian&lowbar;vector]&
operator&equals;(xref:mp_units/cartesian_vector-08.adoc[cartesian&lowbar;vector&lt;U&gt;] const& other);
----

== Return Value

Reference to the current object

== Parameters

[cols="1,4"]
|===
|Name|Description

| *other*
| The object to copy assign from
|===


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