Click to Rate and Give Feedback
MSDN
MSDN Library
Visual Studio 2005
Visual Studio
Visual C++
Reference
Libraries Reference
<numeric>
Functions
 unchecked_adjacent_difference
Collapse All/Expand All Collapse All
This page is specific to
Microsoft Visual Studio 2005/.NET Framework 2.0

Other versions are also available for the following:
Standard C++ Library Reference 
unchecked_adjacent_difference 

Same as adjacent_difference, but allows the use of an unchecked iterator as output iterator when _SECURE_SCL=1 is defined. unchecked_adjacent_difference is defined in the stdext namespace.

NoteNote

This algorithm is a Microsoft extension to the Standard C++ Library. Code implemented using this algorithm will not be portable.

template<class InputIterator, class OutIterator>
   OutputIterator unchecked_adjacent_difference(
      InputIterator _First,
      InputIterator _Last,
      OutputIterator _Result 
   );

template<class InputIterator, class OutputIterator, class BinaryOperation>
   OutputIterator unchecked_adjacent_difference(
      InputIterator _First,
      InputIterator _Last,
      OutputIterator _Result, 
      BinaryOperation _Binary_op
   );

Parameters

_First

An input iterator addressing the first element in the input range whose elements are to be differenced with their respective predecessors or where the pair of values is to be operated on by another specified binary operation.

_Last

An input iterator addressing the last element in the input range whose elements are to be differenced with their respective predecessors or where the pair of values is to be operated on by another specified binary operation.

_Result

An output iterator addressing the first element a destination range where the series of differences or the results of the specified operation is to be stored.

_Binary_op

The binary operation that is to be applied in the generalized operation replacing the operation of subtraction in the differencing procedure.

An output iterator addressing the end of the destination range: _Result + (_Last - _First).

See adjacent_difference for a code sample.

For more information on checked iterators, see Checked Iterators.

Header: <numeric>

Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks | Privacy Statement
Page view tracker