bare_type.hpp 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. // Boost.Geometry (aka GGL, Generic Geometry Library)
  2. // Copyright (c) 2012 Barend Gehrels, Amsterdam, the Netherlands.
  3. // Copyright (c) 2012 Bruno Lalande, Paris, France.
  4. // Copyright (c) 2012 Mateusz Loskot, London, UK.
  5. // This file was modified by Oracle on 2014.
  6. // Modifications copyright (c) 2014 Oracle and/or its affiliates.
  7. // Contributed and/or modified by Adam Wulkiewicz, on behalf of Oracle
  8. // Use, modification and distribution is subject to the Boost Software License,
  9. // Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
  10. // http://www.boost.org/LICENSE_1_0.txt)
  11. #ifndef BOOST_GEOMETRY_UTIL_BARE_TYPE_HPP
  12. #define BOOST_GEOMETRY_UTIL_BARE_TYPE_HPP
  13. #include <boost/type_traits/remove_const.hpp>
  14. #include <boost/type_traits/remove_pointer.hpp>
  15. #include <boost/type_traits/remove_reference.hpp>
  16. namespace boost { namespace geometry
  17. {
  18. namespace util
  19. {
  20. template <typename T>
  21. struct bare_type
  22. {
  23. typedef typename boost::remove_const
  24. <
  25. typename boost::remove_pointer
  26. <
  27. typename boost::remove_reference
  28. <
  29. T
  30. >::type
  31. >::type
  32. >::type type;
  33. };
  34. } // namespace util
  35. }} // namespace boost::geometry
  36. #endif // BOOST_GEOMETRY_UTIL_BARE_TYPE_HPP