[#bsl-remove_const-07] = xref:bsl.adoc[bsl]::remove_const :relfileprefix: ../ :mrdocs: Metafunction removing a top‐level `const` qualifier from a type. == Synopsis Declared in `<bslmf_removeconst.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class t_TYPE> struct remove_const; ---- == Description This `struct` template implements the `remove_const` meta‐function defined in the C++11 standard [meta.trans.cv], providing an alias, `type`, that returns the result. `type` has the same type as the (template parameter) `t_TYPE` except that any top‐level `const`‐qualifier has been removed. Note that this generic default template provides a `type` that is an alias to `t_TYPE` for when `t_TYPE` is not `const`‐qualified. A template specialization is provided (below) that removes the `const`‐qualifier for when `t_TYPE` is `const`‐qualified. == Type Aliases [cols="1,4"] |=== | Name| Description | xref:bsl/remove_const-07/type.adoc[`type`] | This `typedef` is an alias to the (template parameter) `t_TYPE`. |=== == Specializations [cols="1,4"] |=== | Name| Description | xref:bsl/remove_const-02.adoc[`remove_const<t_TYPE const>`] | Partial specialization of `bsl::remove_const` for `const`‐qualified types. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#