ADMB Documentation  11.5.3197
 All Classes Files Functions Variables Typedefs Friends Defines
adstring_array.cpp
Go to the documentation of this file.
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 }