Program Listing for File copy_loader.hpp¶
↰ Return to documentation for file (include/ripple/padding/copy_loader.hpp
)
#ifndef RIPPLE_PADDING_COPY_LOADER_HPP
#define RIPPLE_PADDING_COPY_LOADER_HPP
#include "internal_loader.hpp"
namespace ripple {
struct CopyLoader : public InternalLoader<CopyLoader> {
template <typename IteratorFrom, typename IteratorTo>
ripple_all constexpr auto
load(IteratorFrom&& from, IteratorTo&& to) const noexcept -> void {
static_assert_iterator(to);
static_assert_iterator(from);
*to = *from;
}
};
} // namespace ripple
#endif // RIPPLE_PADDING_COPY_LOADER_HPP