mirror of
https://github.com/bolero-MURAKAMI/Sprout.git
synced 2025-07-16 15:14:13 +00:00
add type_traits/*
This commit is contained in:
parent
84956034ad
commit
64dd2582a4
13 changed files with 114 additions and 76 deletions
24
sprout/range/lvalue_iterator.hpp
Normal file
24
sprout/range/lvalue_iterator.hpp
Normal file
|
@ -0,0 +1,24 @@
|
|||
#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
|
Loading…
Add table
Add a link
Reference in a new issue