Movatterモバイル変換


[0]ホーム

URL:


cppreference.com
Namespaces
Variants
    Actions

      std::char_traits<char>::copy,std::char_traits<wchar_t>::copy,std::char_traits<char8_t>::copy,std::char_traits<char16_t>::copy,std::char_traits<char32_t>::copy

      From cppreference.com
      <cpp‎ |string‎ |char traits
       
       
       
       
      static char_type*
          copy( char_type* dest,const char_type* src,std::size_t count);
      (constexpr since C++20)

      Copiescount characters from the character string pointed to bysrc to the character string pointed to bydest.

      If[destdest+ count) and[srcsrc+ count) overlap, the behavior is undefined.

      SeeCharTraits for the general requirements on character traits forX::copy.

      Contents

      [edit]Parameters

      dest - pointer to a character string to copy to
      src - pointer to a character string to copy from
      count - the number of characters to copy

      [edit]Return value

      dest

      [edit]Exceptions

      Throws nothing.

      [edit]Complexity

      Linear incount.

      [edit]See also

      [static]
      assigns a character
      (public static member function)[edit]
      Retrieved from "https://en.cppreference.com/mwiki/index.php?title=cpp/string/char_traits/copy&oldid=158859"

      [8]ページ先頭

      ©2009-2025 Movatter.jp