mirror of
https://github.com/bolero-MURAKAMI/Sprout
synced 2025-08-03 12:49:50 +00:00
porting cel/range/algoritm.hpp
This commit is contained in:
parent
cf593ffeff
commit
ba6482d1ec
51 changed files with 1908 additions and 116 deletions
24
sprout/range/lvref_iterator.hpp
Normal file
24
sprout/range/lvref_iterator.hpp
Normal file
|
@ -0,0 +1,24 @@
|
|||
#ifndef SPROUT_RANGE_LVREF_ITERATOR_HPP
|
||||
#define SPROUT_RANGE_LVREF_ITERATOR_HPP
|
||||
|
||||
#include <type_traits>
|
||||
#include <sprout/config.hpp>
|
||||
#include <sprout/container/traits.hpp>
|
||||
#include <sprout/utility/operation_ext.hpp>
|
||||
|
||||
namespace sprout {
|
||||
namespace range {
|
||||
//
|
||||
// lvref_iterator
|
||||
//
|
||||
template<typename Range>
|
||||
struct lvref_iterator {
|
||||
public:
|
||||
typedef typename sprout::container_traits<
|
||||
typename std::remove_reference<typename sprout::lvref<Range>::type>::type
|
||||
>::iterator type;
|
||||
};
|
||||
} // namespace range
|
||||
} // namespace sprout
|
||||
|
||||
#endif // #ifndef SPROUT_RANGE_LVREF_ITERATOR_HPP
|
Loading…
Add table
Add a link
Reference in a new issue