src/storage/copy.hpp
/// Copies the source storage into the destination storage buffer
/// @param dest The destination buffer
/// @param src The source buffer
Copies the source storage into the destination storage buffer
Copies the source storage into the destination storage buffer
inline void copy(const mutable_storage& dest, const const_storage& src)
{
    assert(dest.size() > 0);
    assert(dest.size() >= src.size());
    if (dest.data() == src.data()) return;
    std::copy(src.data(), src.data() + src.size(), dest.data());
}
inline void copy ( const mutable_storage & dest , const const_storage & src ) { assert ( dest . size ( ) > 0 ) ; assert ( dest . size ( ) >= src . size ( ) ) ; if ( dest . data ( ) == src . data ( ) ) return ; std :: copy ( src . data ( ) , src . data ( ) + src . size ( ) , dest . data ( ) ) ; }
Copies the source storage into the destination storage buffer
Copies the source storage into the destination storage buffer
// Do not perform a copy if the two buffers are the same