Main Page | Modules | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members

Generator Algorithms
[Mutating Algorithms]


Functions

template<typename ForwardIterator, typename T>
void ustl::fill (ForwardIterator first, ForwardIterator last, const T &value)
template<typename OutputIterator, typename T>
OutputIterator ustl::fill_n (OutputIterator first, size_t count, const T &value)

Detailed Description

Algorithms for generating data.

Function Documentation

template<typename ForwardIterator, typename T>
void fill ForwardIterator  first,
ForwardIterator  last,
const T &  value
[inline]
 

Fill assigns the value value to every element in the range [first, last). That is, for every iterator i in [first, last), it performs the assignment *i = value.

template<typename OutputIterator, typename T>
OutputIterator fill_n OutputIterator  first,
size_t  count,
const T &  value
[inline]
 

Fill_n assigns the value value to every element in the range [first, first+count). That is, for every iterator i in [first, first+count), it performs the assignment *i = value. The return value is first + count.


Generated on Mon Jan 17 14:35:02 2005 for uSTL by 1.3.9 Doxygen Hosted on SourceForge.net