Instantiated member variants
move
Template: std::char_traits<T>
Specializations:
charwchar_tchar8_tchar16_tchar32_t
Min standard notice:
Copies count characters from the character string pointed to by src to the character string pointed to by dest.
# Declarations
static char_type*
move( char_type* dest, const char_type* src, std::size_t count );
(constexpr since C++20)
# Parameters
dest: pointer to a character string to copy tosrc: pointer to a character string to copy fromcount: the number of characters to copy
# Return value
dest
# Defect reports
| DR | Applied to | Behavior as published | Correct behavior |
|---|---|---|---|
| LWG 7 | C++98 | the copy was guaranteed to perform correctly ifsrc is in [dest, dest + count), but not the otherway round (i.e. dest is in [src, src + count)) | also guaranteed |