[#mrdocs-add_volatile_from]
= xref:mrdocs.adoc[mrdocs]::add&lowbar;volatile&lowbar;from
:relfileprefix: ../
:mrdocs:

Propagate volatile qualification from `From` to `To`, keeping references&period;

== Synopsis

Declared in `&lt;mrdocs&sol;Support&sol;TypeTraits&period;hpp&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;
    typename From,
    typename To&gt;
struct add&lowbar;volatile&lowbar;from
    : std::conditional&lt;std&colon;&colon;is&lowbar;volatile&lowbar;v&lt;std&colon;&colon;remove&lowbar;reference&lowbar;t&lt;From&gt;&gt;, add&lowbar;reference&lowbar;from&lowbar;t&lt;To, std::remove&lowbar;reference&lowbar;t&lt;To&gt; volatile&gt;, To&gt;
----

== Base Classes

[cols="1,4"]
|===
| Name| Description
| `std::conditional&lt;std&colon;&colon;is&lowbar;volatile&lowbar;v&lt;std&colon;&colon;remove&lowbar;reference&lowbar;t&lt;From&gt;&gt;, add&lowbar;reference&lowbar;from&lowbar;t&lt;To, std::remove&lowbar;reference&lowbar;t&lt;To&gt; volatile&gt;, To&gt;`
| 
|===


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