[#KeyPair-operator_assign-00]
= xref:KeyPair.adoc[KeyPair]::operator&equals;
:relfileprefix: ../
:mrdocs:

Assignment operators

== Synopses

Declared in `&lt;key&period;h&gt;`

Copy&hyphen;assign the key material from another key pair&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:KeyPair.adoc[KeyPair]&
xref:KeyPair/operator_assign-03.adoc[operator&equals;](xref:KeyPair.adoc[KeyPair] const& other);
----

[.small]#xref:KeyPair/operator_assign-03.adoc[_» more&period;&period;&period;_]#

Move&hyphen;assign a key pair from another&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
constexpr
xref:KeyPair.adoc[KeyPair]&
xref:KeyPair/operator_assign-06.adoc[operator&equals;](xref:KeyPair.adoc[KeyPair]&& other) noexcept = default;
----

[.small]#xref:KeyPair/operator_assign-06.adoc[_» more&period;&period;&period;_]#

== Return Value

A reference to this key pair&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *other*
| The key pair to copy from&period;
|===


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