char_traits::assign

static void assign(E& x, const E& y);
static E *assign(E *x, size_t n, const E& y);

The first static member function assigns y to x. The second static member function assigns y to each element X[N] for N in the range [0, N).