Template Function ripple::copy_from_to¶
Defined in File storage_accessor.hpp
Function Documentation¶
-
template<size_t
I, size_tValues, typenameTypeI, typenameImplFrom, typenameImplTo, vec_element_enable_t<TypeI> = 0>
autoripple::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 fromtoandfrom.Values: The number of values intoandfromfor the Ith type.TypeI: The type of the I element.ImplFrom: The type of the implementation of thefromtype.ImplTo: The type of the implementation for thetotype.
- Parameters
from: The type to copy from.to: The type to copy to.
- Template Parameters
I: The index of the type for get fromtoandfrom.Values: The number of values intoandfromfor the Ith type.TypeI: The type of the I element.ImplFrom: The type of the implementation of thefromtype.ImplTo: The type of the implementation for thetotype.