next up previous contents
Next: operator!= Up: Comparison operators Previous: Comparison operators   Contents

operator==

NAME

operator==

PROTOTYPE

#include "CifString.h"

int CifString::operator==(const CifString &a, const CifString &b)

EXAMPLE

#include "CifString.h"

CifString a, b, c;

a.Copy("ab");
b.Copy("cd");
if (a==b) 
   cout<<"a==b"<<endl;
else
   cout<<"a!=b"<<endl;
PURPOSE

operator==(const CifString &, const CifString &) Cheks if two input CifString are the same.

RECEIVES

operator==(const CifString &, const CifString &)
a reference to a CifString
b reference to a CifString

RETURN VALUE

Returns 1 if CifStrings are the same, otherwise 0.

REMARKS

None



Olivera Tosic 2002-06-12