 st8b7c:f320:99b9:690f:4595:cd17:293a:c069wmemmove    Defined in header <cwchar>         wchar_t* wmemmove( wchar_t* dest, const wchar_t* src, st8b7c:f320:99b9:690f:4595:cd17:293a:c069size_t count );
       Copies exactly count successive wide characters from the wide character array pointed to by src to the wide character array pointed to by dest.
If count is zero, the function does nothing.
The arrays may overlap: copying takes place as if the wide characters were copied to a temporary wide character array and then copied from the temporary array to dest.
 Parameters    dest   -   pointer to the wide character array to copy to 
   src   -   pointer to the wide character array to copy from 
   count   -   number of wide characters to copy 

  Return value Returns a copy of dest.
 Notes This function is not locale-sensitive and pays no attention to the values of the wchar_t objects it copies: nulls as well as invalid characters are copied too.
 Example  #include <iostream>
#include <cwchar>
#include <locale>
#include <clocale>
 
int main()
{
    st8b7c:f320:99b9:690f:4595:cd17:293a:c069setlocale(LC_ALL, "en_US.utf8");
    st8b7c:f320:99b9:690f:4595:cd17:293a:c069wcout.imbue(st8b7c:f320:99b9:690f:4595:cd17:293a:c069locale("en_US.utf8"));
 
    wchar_t str[] = L"αβγδεζηθικλμνξοπρστυφχψω";
    st8b7c:f320:99b9:690f:4595:cd17:293a:c069wcout << str << '\n';
    st8b7c:f320:99b9:690f:4595:cd17:293a:c069wmemmove(str+4, str+3, 3); // copy from [δεζ] to [εζη]
    st8b7c:f320:99b9:690f:4595:cd17:293a:c069wcout << str << '\n';
} Possible output:
αβγδεζηθικλμνξοπρστυφχψω
αβγδδεζθικλμνξοπρστυφχψω   See also     wmemcpy   copies a certain amount of wide characters between two non-overlapping arrays  (function) 
    memmove   moves one buffer to another  (function) 
    copycopy_if
(C++11)   copies a range of elements to a new location  (function template) 
    copy_backward   copies a range of elements in backwards order  (function template) 
   C documentation for wmemmove 
  

    
{'path': 'public/docs/cpp/string/wide/wmemmove.html', 'source': 'DevDocs.IO'}