ADMB Documentation  -a65f1c97
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
adstring_array.cpp
Go to the documentation of this file.
1 
9 #include "adstring.hpp"
10 
18 {
19  if (this != &a)
20  {
21  const int min = a.indexmin();
22  const int max = a.indexmax();
23  allocate(min, max);
24  for (int i = min; i <= max; i++)
25  {
26  (*this)[i] = a[i];
27  }
28  }
29  return *this;
30 }
int indexmin(void) const
Definition: string5.cpp:68
adstring_array & operator=(const adstring_array &)
Assigment operator for adstring_array.
void allocate()
Definition: adstring.hpp:210
#define min(a, b)
Definition: cbivnorm.cpp:188
int indexmax(void) const
Definition: string5.cpp:71
#define max(a, b)
Definition: cbivnorm.cpp:189