not_pointer.hpp 496 B

123456789101112131415161718192021222324252627
  1. /*
  2. Copyright 2019 Glen Joseph Fernandes
  3. (glenjofe@gmail.com)
  4. Distributed under the Boost Software License, Version 1.0.
  5. (http://www.boost.org/LICENSE_1_0.txt)
  6. */
  7. #ifndef BOOST_ALIGN_DETAIL_NOT_POINTER_HPP
  8. #define BOOST_ALIGN_DETAIL_NOT_POINTER_HPP
  9. namespace boost {
  10. namespace alignment {
  11. namespace detail {
  12. template<class T, class U>
  13. struct not_pointer {
  14. typedef U type;
  15. };
  16. template<class T, class U>
  17. struct not_pointer<T*, U> { };
  18. } /* detail */
  19. } /* alignment */
  20. } /* boost */
  21. #endif