1[/ 2 Copyright 2007 John Maddock. 3 Distributed under the Boost Software License, Version 1.0. 4 (See accompanying file LICENSE_1_0.txt or copy at 5 http://www.boost.org/LICENSE_1_0.txt). 6] 7 8[section:remove_const remove_const] 9 10 template <class T> 11 struct remove_const 12 { 13 typedef __below type; 14 }; 15 16__type The same type as `T`, but with any /top level/ const-qualifier removed. 17 18__std_ref 3.9.3. 19 20__compat If the compiler does not support partial specialization of class-templates 21then this template will compile, but the member `type` will always be the same as 22type `T` except where __transform_workaround have been applied. 23 24__header ` #include <boost/type_traits/remove_const.hpp>` or ` #include <boost/type_traits.hpp>` 25 26[table Examples 27 28[ [Expression] [Result Type]] 29 30[[`remove_const<int>::type`][`int`]] 31 32[[`remove_const<int const>::type`] [`int`]] 33 34[[`remove_const<int const volatile>::type`] [`int volatile`]] 35 36[[`remove_const<int const&>::type`] [`int const&`]] 37 38[[`remove_const<int const*>::type`] [`int const*`]] 39 40] 41 42[endsect] 43 44