mirror of
https://github.com/bolero-MURAKAMI/Sprout.git
synced 2024-11-14 10:39:05 +00:00
42 lines
1.1 KiB
C++
42 lines
1.1 KiB
C++
|
#ifndef SPROUT_COMPOST_WAVES_BLANKED_HPP
|
||
|
#define SPROUT_COMPOST_WAVES_BLANKED_HPP
|
||
|
|
||
|
#include <sprout/config.hpp>
|
||
|
#include <sprout/range/adaptor/blanked.hpp>
|
||
|
|
||
|
namespace sprout {
|
||
|
namespace compost {
|
||
|
namespace waves {
|
||
|
//
|
||
|
// blanked_forwarder
|
||
|
//
|
||
|
class blanked_forwarder {
|
||
|
public:
|
||
|
SPROUT_CONSTEXPR sprout::adaptors::blanked_range<double>
|
||
|
operator()() const {
|
||
|
return sprout::adaptors::blanked_range<double>();
|
||
|
}
|
||
|
template<typename Difference>
|
||
|
SPROUT_CONSTEXPR sprout::adaptors::blanked_range<double>
|
||
|
operator()(Difference n) const {
|
||
|
return sprout::adaptors::blanked_range<double>(n);
|
||
|
}
|
||
|
template<typename T, typename Difference>
|
||
|
SPROUT_CONSTEXPR sprout::adaptors::blanked_range<T>
|
||
|
operator()(Difference n, T const& value) const {
|
||
|
return sprout::adaptors::blanked_range<T>(n, value);
|
||
|
}
|
||
|
};
|
||
|
|
||
|
//
|
||
|
// blanked
|
||
|
//
|
||
|
namespace {
|
||
|
SPROUT_STATIC_CONSTEXPR sprout::compost::waves::blanked_forwarder blanked{};
|
||
|
} // anonymous-namespace
|
||
|
} // namespace waves
|
||
|
} // namespace compost
|
||
|
} // namespace sprout
|
||
|
|
||
|
#endif // #ifndef SPROUT_COMPOST_WAVES_BLANKED_HPP
|