mirror of
https://github.com/bolero-MURAKAMI/Sprout.git
synced 2024-11-16 10:49:05 +00:00
23 lines
815 B
C++
23 lines
815 B
C++
|
#ifndef SPROUT_ITERATOR_TO_UPPER_ITERATOR_HPP
|
||
|
#define SPROUT_ITERATOR_TO_UPPER_ITERATOR_HPP
|
||
|
|
||
|
#include <iterator>
|
||
|
#include <sprout/config.hpp>
|
||
|
#include <sprout/iterator/transform_iterator.hpp>
|
||
|
#include <sprout/ctype/functor.hpp>
|
||
|
|
||
|
namespace sprout {
|
||
|
//
|
||
|
// make_to_upper_iterator
|
||
|
//
|
||
|
template<typename Iterator>
|
||
|
inline SPROUT_CONSTEXPR sprout::transform_iterator<sprout::ctypes::to_upper<typename std::iterator_traits<Iterator>::value_type>, Iterator>
|
||
|
make_to_upper_iterator(Iterator it) {
|
||
|
return sprout::transform_iterator<sprout::ctypes::to_upper<typename std::iterator_traits<Iterator>::value_type>, Iterator>(
|
||
|
it, sprout::ctypes::to_upper<typename std::iterator_traits<Iterator>::value_type>()
|
||
|
);
|
||
|
}
|
||
|
} // namespace sprout
|
||
|
|
||
|
#endif // #ifndef SPROUT_ITERATOR_TO_UPPER_ITERATOR_HPP
|