Standard C++ Library Class Reference
Click on the banner to return to the Class Reference home page.
©Copyright 1996 Rogue Wave Software
value_type
Type primitive
Summary
Determine the type of value an iterator points to.
Contents
Synopsis●
Description●
See Also●
Synopsis
#include <iterator>
template <class T, class Distance>
inline T* value_type (const input_iterator<T, Distance>&)
template <class T, class Distance>
inline T* value_type (const forward_iterator<T, Distance>&)
template <class T, class Distance>
inline T* value_type (const bidirectional_iterator<T, Distance>&)
template <class T, class Distance>
inline T* value_type (const random_access_iterator<T, Distance>&)
template <class T>
inline T* value_type (const T*)
Description
The value_type function template returns a pointer to a default value of the type pointed to by an
iterator. Five overloaded versions of this function template handle the four basic iterator types
and simple arrays. Each of the first four take an iterator of a specific type, and return the value