int_vector.cpp File Reference

#include "../header/int_vector.h"

Include dependency graph for int_vector.cpp:

Go to the source code of this file.

Functions

bool operator== (const int_vector &cont_1, const int_vector &cont_2)
bool operator!= (const int_vector &cont_1, const int_vector &cont_2)


Function Documentation

bool operator!= ( const int_vector cont_1,
const int_vector cont_2 
)

Definition at line 132 of file int_vector.cpp.

00133 {
00134   if(cont_1==cont_2)
00135     return 0;
00136   return 1;
00137 }

bool operator== ( const int_vector cont_1,
const int_vector cont_2 
)

Definition at line 123 of file int_vector.cpp.

References int_vector::size().

00124 {
00125   if(cont_1.size()!=cont_2.size())
00126     return 0;
00127   for(int k=0;k<cont_1.size();k++)
00128     if(cont_1[k]!=cont_2[k])
00129       return 0;
00130   return 1;
00131 }

Here is the call graph for this function:


Generated on Mon Mar 30 16:56:08 2009 by  doxygen 1.5.6