Standard C++ Library Reference ISO/IEC (VERSION3)
unless the code throws an exception. In that case, all constructed objects are destroyed and the
exception is rethrown.
uninitialized_fill_n
template<class FwdIt, class Size, class Ty>
 void uninitialized_fill_n(FwdIt first, Size count,
 const Ty& val);
The template function effectively executes:
while (0 < count--)
 new ((void *)&*first++)
 iterator_traits<FwdIt>::value_type(val);
unless the code throws an exception. In that case, all constructed objects are destroyed and the
exception is rethrown.
See also the Table of Contents and the Index.
Copyright © 1994-2001 by P.J. Plauger. Portions derived from work copyright © 1994 by
Hewlett-Packard Company. All rights reserved.










