str_types.hpp 813 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. // Boost.Range library
  2. //
  3. // Copyright Thorsten Ottosen 2006. Use, modification and
  4. // distribution is subject to the Boost Software License, Version
  5. // 1.0. (See accompanying file LICENSE_1_0.txt or copy at
  6. // http://www.boost.org/LICENSE_1_0.txt)
  7. //
  8. // For more information, see http://www.boost.org/libs/range/
  9. //
  10. #ifndef BOOST_RANGE_DETAIL_STR_TYPES_HPP
  11. #define BOOST_RANGE_DETAIL_STR_TYPES_HPP
  12. #include <boost/range/size_type.hpp>
  13. #include <boost/range/iterator.hpp>
  14. namespace boost
  15. {
  16. template< class T >
  17. struct range_mutable_iterator<T*>
  18. {
  19. typedef T* type;
  20. };
  21. template< class T >
  22. struct range_const_iterator<T*>
  23. {
  24. typedef const T* type;
  25. };
  26. template< class T >
  27. struct range_size<T*>
  28. {
  29. typedef std::size_t type;
  30. };
  31. }
  32. #endif