remove_cv_ref.hpp 859 B

123456789101112131415161718192021222324252627282930
  1. // (C) Copyright Peter Dimov 2017.
  2. // Use, modification and distribution are subject to the Boost Software License,
  3. // Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
  4. // http://www.boost.org/LICENSE_1_0.txt).
  5. //
  6. // See http://www.boost.org/libs/type_traits for most recent version including documentation.
  7. #ifndef BOOST_TT_REMOVE_CV_REF_HPP_INCLUDED
  8. #define BOOST_TT_REMOVE_CV_REF_HPP_INCLUDED
  9. #include <boost/config.hpp>
  10. #include <boost/type_traits/remove_cv.hpp>
  11. #include <boost/type_traits/remove_reference.hpp>
  12. namespace boost {
  13. template <class T> struct remove_cv_ref: remove_cv<typename remove_reference<T>::type> {};
  14. #if !defined(BOOST_NO_CXX11_TEMPLATE_ALIASES)
  15. template <class T> using remove_cv_ref_t = typename remove_cv_ref<T>::type;
  16. #endif
  17. } // namespace boost
  18. #endif // BOOST_TT_REMOVE_CV_REF_HPP_INCLUDED