[#mrdocs-isCopyConstructor]
= xref:mrdocs.adoc[mrdocs]::isCopyConstructor
:relfileprefix: ../
:mrdocs:

Check whether a function is a copy constructor&period;

== Synopsis

Declared in `&lt;mrdocs&sol;Metadata&sol;Symbol&sol;Function&period;hpp&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
bool
isCopyConstructor(xref:mrdocs/FunctionSymbol.adoc[FunctionSymbol] const& func);
----

== Description

A copy constructor is a non&hyphen;template constructor whose first parameter is an lvalue reference to the possibly cv&hyphen;qualified record type, with all remaining parameters having defaults (&lsqb;class&period;copy&period;ctor&rsqb;)&period;

== Return Value

Whether `func` is a copy constructor&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *func*
| The function to check&period;
|===


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