Instantiated member variants

assign

Template: std::char_traits<T>

Specializations:
  • char
  • wchar_t
  • char8_t
  • char16_t
  • char32_t
  1. 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