[#UCharCast-04]
= UCharCast
:mrdocs:

`UCharCast` overloads

== Synopses

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

Reinterpret a `std&colon;&colon;byte` pointer as an `unsigned char` pointer&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
unsigned char*
xref:UCharCast-0e.adoc[UCharCast](std::byte* c);
----

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

Reinterpret a `char` pointer as an `unsigned char` pointer&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
unsigned char*
xref:UCharCast-05.adoc[UCharCast](char* c);
----

[.small]#xref:UCharCast-05.adoc[_» more&period;&period;&period;_]#

Reinterpret a `signed char` pointer as an `unsigned char` pointer&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
unsigned char*
xref:UCharCast-08.adoc[UCharCast](signed char* c);
----

[.small]#xref:UCharCast-08.adoc[_» more&period;&period;&period;_]#

Return an `unsigned char` pointer unchanged&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
unsigned char*
xref:UCharCast-0ba.adoc[UCharCast](unsigned char* c);
----

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

Reinterpret a `const std&colon;&colon;byte` pointer as a `const unsigned char` pointer&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
unsigned char const*
xref:UCharCast-01f.adoc[UCharCast](std::byte const* c);
----

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

Reinterpret a `const char` pointer as a `const unsigned char` pointer&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
unsigned char const*
xref:UCharCast-0bd.adoc[UCharCast](char const* c);
----

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

Reinterpret a `const signed char` pointer as a `const unsigned char` pointer&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
unsigned char const*
xref:UCharCast-0f.adoc[UCharCast](signed char const* c);
----

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

Return a `const unsigned char` pointer unchanged&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
unsigned char const*
xref:UCharCast-010.adoc[UCharCast](unsigned char const* c);
----

[.small]#xref:UCharCast-010.adoc[_» more&period;&period;&period;_]#

== Return Value

* The same address typed as an `unsigned char` pointer&period;
* The pointer `c` unchanged&period;
* The same address typed as a `const unsigned char` pointer&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *c*
| The `std&colon;&colon;byte` pointer to cast&period;
|===


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