00001 /* 00002 * $Id$ 00003 * 00004 * Author: David Fournier 00005 * Copyright (c) 2008-2012 ADMB Foundation 00006 */ 00007 #include "adstring.hpp" 00008 00009 adstring_array& adstring_array::operator=(const adstring_array& a) 00010 { 00011 if (this != &a) 00012 { 00013 const int min = a.indexmin(); 00014 const int max = a.indexmax(); 00015 allocate(min, max); 00016 for (int i = min; i <= max; i++) 00017 { 00018 (*this)[i] = a[i]; 00019 } 00020 } 00021 return *this; 00022 }
Generated on Tue Mar 8 2016 19:51:30 for ADMB Documentation by 1.8.0 |