Shortcuts

Template Function ripple::copy_from_to

Function Documentation

template<size_t I, size_t Values, typename TypeI, typename ImplFrom, typename ImplTo, vec_element_enable_t<TypeI> = 0>
auto ripple::copy_from_to(const ImplFrom &from, ImplTo &to) noexcept -> void

Defines a function to copy the Values elements of the Ith type in ImplFrom to elements of the Ith type in ImplTo.

Defines a function to copy the Values elements of the Ith type in ImplFrom to the elements of the Ith type in ImplTo.

Note

The calling function should ensure that the Ith type of both ImplTo and ImplFrom have the same number of elements.

Note

This overload is only enabled when the Ith type is a vector type and is indexable.

Note

The calling function should ensure that the Ith type of both ImplTo and ImplFrom have the same number of elements.

Note

This overload is only enabled when the Ith type is not a vector element and is therefore not indexable.

Parameters
  • from: The type to copy from.

  • to: The type to copy to.

Template Parameters
  • I: The index of the type for get from to and from.

  • Values: The number of values in to and from for the Ith type.

  • TypeI: The type of the I element.

  • ImplFrom: The type of the implementation of the from type.

  • ImplTo: The type of the implementation for the to type.

Parameters
  • from: The type to copy from.

  • to: The type to copy to.

Template Parameters
  • I: The index of the type for get from to and from.

  • Values: The number of values in to and from for the Ith type.

  • TypeI: The type of the I element.

  • ImplFrom: The type of the implementation of the from type.

  • ImplTo: The type of the implementation for the to type.

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