Sprout/sprout/range/lvalue_iterator.hpp

25 lines
640 B
C++
Raw Normal View History

2012-04-05 05:54:23 +00:00
#ifndef SPROUT_RANGE_LVALUE_ITERATOR_HPP
#define SPROUT_RANGE_LVALUE_ITERATOR_HPP
#include <type_traits>
#include <sprout/config.hpp>
#include <sprout/container/traits.hpp>
#include <sprout/type_traits/lvalue_reference.hpp>
namespace sprout {
namespace range {
//
// lvalue_iterator
//
template<typename Range>
struct lvalue_iterator {
public:
typedef typename sprout::container_traits<
typename std::remove_reference<typename sprout::lvalue_reference<Range>::type>::type
>::iterator type;
};
} // namespace range
} // namespace sprout
#endif // #ifndef SPROUT_RANGE_LVALUE_ITERATOR_HPP