Program Listing for File fo_extrap_loader.hpp¶
↰ Return to documentation for file (include/ripple/padding/fo_extrap_loader.hpp
)
#ifndef RIPPLE_PADDING_FO_EXTRAP_LOADER_HPP
#define RIPPLE_PADDING_FO_EXTRAP_LOADER_HPP
#include "padding_loader.hpp"
namespace ripple {
struct FOExtrapLoader : public PaddingLoader<FOExtrapLoader> {
template <typename Iterator, typename Dim>
ripple_all constexpr auto
load_front(Iterator&& it, int index, Dim&& dim) const noexcept -> void {
static_assert_iterator(it);
*it = *it.offset(dim, index);
}
template <typename Iterator, typename Dim>
ripple_all constexpr auto
load_back(Iterator&& it, int index, Dim&& dim) const noexcept -> void {
static_assert_iterator(it);
*it = *it.offset(dim, index);
}
};
} // namespace ripple
#endif // RIPPLE_PADDING_FO_EXTRAP_LOADER_HPP