unrefcv.hpp 775 B

12345678910111213141516171819202122232425
  1. /*//////////////////////////////////////////////////////////////////////////////
  2. Copyright (c) 2014 Jamboree
  3. Distributed under the Boost Software License, Version 1.0. (See accompanying
  4. file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
  5. //////////////////////////////////////////////////////////////////////////////*/
  6. #ifndef BOOST_SPIRIT_X3_UNREFCV_HPP_INCLUDED
  7. #define BOOST_SPIRIT_X3_UNREFCV_HPP_INCLUDED
  8. #include <boost/type_traits/remove_cv.hpp>
  9. #include <boost/type_traits/remove_reference.hpp>
  10. namespace boost { namespace spirit { namespace x3
  11. {
  12. template <typename T>
  13. struct unrefcv : remove_cv<typename remove_reference<T>::type> {};
  14. template <typename T>
  15. using unrefcv_t = typename unrefcv<T>::type;
  16. }}}
  17. #endif