[#mrdocs-add_volatile_from] = xref:mrdocs.adoc[mrdocs]::add_volatile_from :relfileprefix: ../ :mrdocs: Propagate volatile qualification from `From` to `To`, keeping references. == Synopsis Declared in `<mrdocs/Support/TypeTraits.hpp>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< typename From, typename To> struct add_volatile_from : std::conditional<std::is_volatile_v<std::remove_reference_t<From>>, add_reference_from_t<To, std::remove_reference_t<To> volatile>, To> ---- == Base Classes [cols="1,4"] |=== | Name| Description | `std::conditional<std::is_volatile_v<std::remove_reference_t<From>>, add_reference_from_t<To, std::remove_reference_t<To> volatile>, To>` | |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#