lines 11-52 of file: include/cppad/core/ad_assign.hpp

{xrst_begin ad_assign}

AD Assignment Operator
######################

Syntax
******
*y* = *x*

Purpose
*******
Assigns the value in *x* to the object *y* .
In either case,

x
*
The argument *x* has prototype

   ``const`` *Type* & *x*

where *Type* is
``VecAD`` < *Base* >:: ``reference`` ,
``AD`` < *Base* > ,
*Base* ,
or any type that has an implicit constructor of the form
*Base* ( *x* ) .

y
*
The target *y* has prototype

   ``AD`` < *Base* > *y*

Example
*******
{xrst_toc_hidden
   example/general/ad_assign.cpp
}
The file :ref:`ad_assign.cpp-name` contain examples and tests of these operations.
It test returns true if it succeeds and false otherwise.

{xrst_end ad_assign}
