[#AsBase-0a0]
= AsBase
:mrdocs:

`AsBase` overloads

== Synopses

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

Convert any argument to a reference to X, maintaining constness&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;
    class Out,
    class In&gt;
Out&
xref:AsBase-0af.adoc[AsBase](In& x);
----

[.small]#xref:AsBase-0af.adoc[_» more&period;&period;&period;_]#

Convert any argument to a const reference to X, maintaining constness&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;
    class Out,
    class In&gt;
Out const&
xref:AsBase-01.adoc[AsBase](In const& x);
----

[.small]#xref:AsBase-01.adoc[_» more&period;&period;&period;_]#

== Return Value

* A reference to x typed as the base class Out&period;
* A const reference to x typed as the base class Out&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *x*
| The derived object to view as its base class&period;
|===


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