• Docs >
  • Program Listing for File copy_loader.hpp
Shortcuts

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

Docs

Access comprehensive developer documentation for Ripple

View Docs

Tutorials

Get tutorials to help with understand all features

View Tutorials

Examples

Find examples to help get started

View Examples