Instantiated member variants
assign
Template: std::char_traits<T>
Specializations:
charwchar_tchar8_tchar16_tchar32_t
Min standard notice:
- Assigns c2 to c1, behaves identically to c1 = c2.
# Declarations
static void assign( char_type& c1, const char_type& c2 );
(noexcept since C++11)(constexpr since C++17)
static char_type* assign( char_type* ptr, std::size_t count, char_type c2 );
(constexpr since C++20)
# Parameters
c1: character to assign toc2: character value to assignptr: pointer to a character sequence to assign tocount: the length of the character sequence