stl_uninitialized.h File Reference

#include <cstring>

Include dependency graph for stl_uninitialized.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  std

Functions

template<typename InputIterator, typename ForwardIterator>
ForwardIterator uninitialized_copy (InputIterator first, InputIterator last, ForwardIterator __result)
 Copies the range [first,last) into result.
template<typename ForwardIterator, typename Type>
void uninitialized_fill (ForwardIterator first, ForwardIterator last, const Type &x)
 Copies the value x into the range [first,last).
template<typename ForwardIterator, typename Size, typename Type>
ForwardIterator uninitialized_fill_n (ForwardIterator first, Size n, const Type &x)
 Copies the value x into the range [first,first+n).


Detailed Description

This is an internal header file, included by other library headers. You should not attempt to use it directly.

Definition in file stl_uninitialized.h.


Function Documentation

template<typename InputIterator, typename ForwardIterator>
ForwardIterator std::uninitialized_copy InputIterator  first,
InputIterator  last,
ForwardIterator  __result
[inline]
 

Copies the range [first,last) into result.

Parameters:
first An input iterator.
last An input iterator.
result An output iterator.
Returns:
result + (first - last)
Like copy(), but does not require an initialized output range.

Definition at line 107 of file stl_uninitialized.h.

Referenced by std::deque< Type, Allocator >::deque(), std::vector< Type, Alloc >::operator=(), and std::vector< Type, Allocator >::vector().

template<typename ForwardIterator, typename Type>
void std::uninitialized_fill ForwardIterator  first,
ForwardIterator  last,
const Type &  x
[inline]
 

Copies the value x into the range [first,last).

Parameters:
first An input iterator.
last An input iterator.
x The source value.
Returns:
Nothing.
Like fill(), but does not require an initialized output range.

Definition at line 169 of file stl_uninitialized.h.

template<typename ForwardIterator, typename Size, typename Type>
ForwardIterator std::uninitialized_fill_n ForwardIterator  first,
Size  n,
const Type &  x
[inline]
 

Copies the value x into the range [first,first+n).

Parameters:
first An input iterator.
n The number of copies to make.
x The source value.
Returns:
first+n
Like fill_n(), but does not require an initialized output range.

Definition at line 215 of file stl_uninitialized.h.

Referenced by std::vector< Type, Allocator >::vector().


Generated on Fri May 6 01:11:51 2005 for libstdc++-v3 Source by  doxygen 1.4.2