1
0
Fork 0
mirror of https://github.com/bolero-MURAKAMI/Sprout synced 2024-11-12 21:09:01 +00:00
Sprout/sprout/compost/waves/blanked.hpp

51 lines
1.6 KiB
C++
Raw Normal View History

2013-08-08 09:54:33 +00:00
/*=============================================================================
2016-02-25 09:48:28 +00:00
Copyright (c) 2011-2016 Bolero MURAKAMI
2013-08-08 09:54:33 +00:00
https://github.com/bolero-MURAKAMI/Sprout
Distributed under the Boost Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
=============================================================================*/
2012-11-17 09:44:24 +00:00
#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 {
2012-12-17 14:10:23 +00:00
SPROUT_STATIC_CONSTEXPR sprout::compost::waves::blanked_forwarder blanked = {};
2012-11-17 09:44:24 +00:00
} // anonymous-namespace
} // namespace waves
using sprout::compost::waves::blanked;
2012-11-17 09:44:24 +00:00
} // namespace compost
} // namespace sprout
#endif // #ifndef SPROUT_COMPOST_WAVES_BLANKED_HPP