ΒΆtemplate <class T>
inline constexpr void clone_into(
T& dest,
const T& source) noexcept
template <class T>
inline constexpr void clone_into(
T& dest,
const T& source) noexcept
Description
Performs copy-assignment from `source`. Will perform a copy assignment if T is `Copy`. Otherwise will perform the equivalent of `dest = source.clone()`. The `Clone` type may provide an implementation of `clone_from(const T & source)` to reuse its resources and avoid unnecessary allocations, which will be preferred over calling `source.clone()`.
Declared at: sus/mem/clone.h:151
Templates
- T
Parameters
- T& dest
- const T& source