SGI STL was introduced in 1997, and the C ++ standard was published in 1998.
If you need a reliable reference to the STL interface, look at the C ++ 2003 standard. Or if you don't mind updating, the latest C ++ project is at http://www.open-std.org/jtc1/sc22/wg21/ docs / papers / 2011 / n3242.pdf
In particular, if you go to section 23.3.6 of N3242, you know what to designate it in.
template <class InputIterator> void assign(InputIterator first, InputIterator last);
Effects:
erase(begin(), end()); insert(begin(), first, last);
and
void assign(size_type n, const T& t);
Effects:
erase(begin(), end()); insert(begin(), n, t);
and
const_reference at(size_type n) const; reference at(size_type n);
source share