mirror of
https://github.com/bolero-MURAKAMI/Sprout.git
synced 2024-12-25 21:35:41 +00:00
25 lines
640 B
C++
25 lines
640 B
C++
|
#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
|