next up previous contents
Next: operator+= Up: Operators Previous: Operators   Contents

operator=

NAME

operator=

PROTOTYPE

#include "CifString.h"

CifString &CifString::operator=(const CifString &s)
CifString &CifString::operator=(const char *s)

EXAMPLE

#include "CifString.h"
CifString a;

a="CifString";
PURPOSE

&operator=(const CifString &) Assigns one string to another. Checks for assignment to self. Uses share-semantics.
&operator=(const char *) Copy a null-terminated string into this object. The string might be resized if necessary and allowed.

RECEIVES

&operator=(const CifString &)
s reference to a CifString
&operator=(const char *)
s null-terminated string

RETURN VALUE

None

REMARKS

None



Olivera Tosic 2002-06-12