lines 8-30 of file: include/cppad/example/atomic_four/vector/reverse_op.hpp

{xrst_begin atomic_four_vector_reverse_op.hpp}

Atomic Vector Forward Mode: Example Implementation
##################################################

Purpose
*******
The ``reverse`` routine overrides the virtual functions
used by the atomic_four base class for reverse mode calculations; see
:ref:`reverse<atomic_four_reverse-name>` .
It determines which operator is specified for this call and transfers
the call to the operator's implementation.
There are two versions of the ``reverse`` routine, one for *Base*
and one for ``AD<Base>`` .

Source
******
{xrst_literal
   // BEGIN C++
   // END C++
}

{xrst_end atomic_four_vector_reverse_op.hpp}
