| (1) | ||
static void assign( char_type& r, const char_type& a ); | (until C++11) | |
static void assign( char_type& r, const char_type& a ) noexcept; | (since C++11) (until C++17) | |
static constexpr void assign( char_type& r, const char_type& a ) noexcept; | (since C++17) | |
| (2) | ||
static char_type* assign( char_type* p, std::size_t count, char_type a ); | (until C++20) | |
static constexpr char_type* assign( char_type* p,
std::size_t count, char_type a );
| (since C++20) |
Assigns a character.
a to character r.a to each character in count characters in the character sequence pointed to by p.| a | - | character value to assign |
| r | - | character to assign to |
| p | - | pointer to a character sequence to assign to |
| count | - | the length of the character sequence |
p
count.
© cppreference.com
Licensed under the Creative Commons Attribution-ShareAlike Unported License v3.0.
https://en.cppreference.com/w/cpp/string/char_traits/assign