CppAD: A C++ Algorithmic Differentiation Package  20171217
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
template<class Type>
void CppAD::local::pod_vector< Type >::swap ( pod_vector< Type > &  other)

Swap all properties of this vector with another.

This is useful when moving a vector that grows after it has reached its final size (without copying every element).

otheris the other vector that we are swapping this vector with.

Definition at line 300 of file pod_vector.hpp.

Referenced by CppAD::ADFun< Base >::capacity_order(), CppAD::local::sparse_sizevec::collect_garbage(), and CppAD::local::player< double >::get().