mirror of
https://github.com/bolero-MURAKAMI/Sprout
synced 2025-08-03 12:49:50 +00:00
add adaptors::blanked
This commit is contained in:
parent
e286c9bc6b
commit
ded2da84ea
27 changed files with 350 additions and 349 deletions
|
@ -1,25 +0,0 @@
|
|||
#ifndef SPROUT_PIT_BLANK_HPP
|
||||
#define SPROUT_PIT_BLANK_HPP
|
||||
|
||||
#include <cstddef>
|
||||
#include <sprout/config.hpp>
|
||||
#include <sprout/array.hpp>
|
||||
#include <sprout/pit/pit.hpp>
|
||||
|
||||
namespace sprout {
|
||||
//
|
||||
// blank
|
||||
//
|
||||
struct blank {};
|
||||
|
||||
//
|
||||
// blank_pit
|
||||
//
|
||||
template<std::size_t N>
|
||||
inline SPROUT_CONSTEXPR sprout::pit<sprout::array<sprout::blank, N> >
|
||||
blank_pit() {
|
||||
return sprout::pit<sprout::array<sprout::blank, N> >();
|
||||
}
|
||||
} // namespace sprout
|
||||
|
||||
#endif // #ifndef SPROUT_PIT_BLANK_HPP
|
|
@ -49,10 +49,10 @@ namespace sprout {
|
|||
return const_iterator(elem, static_size);
|
||||
}
|
||||
iterator end() SPROUT_NOEXCEPT {
|
||||
return iterator();
|
||||
return iterator(elem, 0);
|
||||
}
|
||||
SPROUT_CONSTEXPR const_iterator end() const SPROUT_NOEXCEPT {
|
||||
return const_iterator();
|
||||
return const_iterator(elem, 0);
|
||||
}
|
||||
reverse_iterator rbegin() SPROUT_NOEXCEPT {
|
||||
return reverse_iterator(end());
|
||||
|
@ -70,7 +70,7 @@ namespace sprout {
|
|||
return const_iterator(elem, static_size);
|
||||
}
|
||||
SPROUT_CONSTEXPR const_iterator cend() const SPROUT_NOEXCEPT {
|
||||
return const_iterator();
|
||||
return const_iterator(elem, 0);
|
||||
}
|
||||
SPROUT_CONSTEXPR const_reverse_iterator crbegin() const SPROUT_NOEXCEPT {
|
||||
return const_reverse_iterator(end());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue