Instantiated member variants

move

Template: std::char_traits<T>

Specializations:
  • char
  • wchar_t
  • char8_t
  • char16_t
  • char32_t

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

# Return value

dest

# Defect reports

DRApplied toBehavior as publishedCorrect behavior
LWG 7C++98the 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