annotate src/SLStack.cc @ 4192:5719210fff4c

[project @ 2002-11-20 16:56:47 by jwe]
author jwe
date Wed, 20 Nov 2002 16:56:49 +0000
parents 47d3baea432d
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
2579
6e1d6e02fd8c [project @ 1996-12-10 05:55:22 by jwe]
jwe
parents:
diff changeset
1 // This may look like C code, but it is really -*- C++ -*-
6e1d6e02fd8c [project @ 1996-12-10 05:55:22 by jwe]
jwe
parents:
diff changeset
2 /*
6e1d6e02fd8c [project @ 1996-12-10 05:55:22 by jwe]
jwe
parents:
diff changeset
3 Copyright (C) 1988, 1992 Free Software Foundation
6e1d6e02fd8c [project @ 1996-12-10 05:55:22 by jwe]
jwe
parents:
diff changeset
4 written by Doug Lea (dl@rocky.oswego.edu)
6e1d6e02fd8c [project @ 1996-12-10 05:55:22 by jwe]
jwe
parents:
diff changeset
5
6e1d6e02fd8c [project @ 1996-12-10 05:55:22 by jwe]
jwe
parents:
diff changeset
6 This file is part of the GNU C++ Library. This library is free
6e1d6e02fd8c [project @ 1996-12-10 05:55:22 by jwe]
jwe
parents:
diff changeset
7 software; you can redistribute it and/or modify it under the terms of
6e1d6e02fd8c [project @ 1996-12-10 05:55:22 by jwe]
jwe
parents:
diff changeset
8 the GNU Library General Public License as published by the Free
6e1d6e02fd8c [project @ 1996-12-10 05:55:22 by jwe]
jwe
parents:
diff changeset
9 Software Foundation; either version 2 of the License, or (at your
6e1d6e02fd8c [project @ 1996-12-10 05:55:22 by jwe]
jwe
parents:
diff changeset
10 option) any later version. This library is distributed in the hope
6e1d6e02fd8c [project @ 1996-12-10 05:55:22 by jwe]
jwe
parents:
diff changeset
11 that it will be useful, but WITHOUT ANY WARRANTY; without even the
6e1d6e02fd8c [project @ 1996-12-10 05:55:22 by jwe]
jwe
parents:
diff changeset
12 implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
6e1d6e02fd8c [project @ 1996-12-10 05:55:22 by jwe]
jwe
parents:
diff changeset
13 PURPOSE. See the GNU Library General Public License for more details.
6e1d6e02fd8c [project @ 1996-12-10 05:55:22 by jwe]
jwe
parents:
diff changeset
14 You should have received a copy of the GNU Library General Public
6e1d6e02fd8c [project @ 1996-12-10 05:55:22 by jwe]
jwe
parents:
diff changeset
15 License along with this library; if not, write to the Free Software
6e1d6e02fd8c [project @ 1996-12-10 05:55:22 by jwe]
jwe
parents:
diff changeset
16 Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
6e1d6e02fd8c [project @ 1996-12-10 05:55:22 by jwe]
jwe
parents:
diff changeset
17 */
6e1d6e02fd8c [project @ 1996-12-10 05:55:22 by jwe]
jwe
parents:
diff changeset
18
4192
5719210fff4c [project @ 2002-11-20 16:56:47 by jwe]
jwe
parents: 4066
diff changeset
19 #if defined (__GNUG__) && defined (USE_PRAGMA_INTERFACE_IMPLEMENTATION)
2579
6e1d6e02fd8c [project @ 1996-12-10 05:55:22 by jwe]
jwe
parents:
diff changeset
20 #pragma implementation
6e1d6e02fd8c [project @ 1996-12-10 05:55:22 by jwe]
jwe
parents:
diff changeset
21 #endif
6e1d6e02fd8c [project @ 1996-12-10 05:55:22 by jwe]
jwe
parents:
diff changeset
22
6e1d6e02fd8c [project @ 1996-12-10 05:55:22 by jwe]
jwe
parents:
diff changeset
23 #ifdef HAVE_CONFIG_H
6e1d6e02fd8c [project @ 1996-12-10 05:55:22 by jwe]
jwe
parents:
diff changeset
24 #include <config.h>
6e1d6e02fd8c [project @ 1996-12-10 05:55:22 by jwe]
jwe
parents:
diff changeset
25 #endif
6e1d6e02fd8c [project @ 1996-12-10 05:55:22 by jwe]
jwe
parents:
diff changeset
26
6e1d6e02fd8c [project @ 1996-12-10 05:55:22 by jwe]
jwe
parents:
diff changeset
27 #include "SLStack.h"
6e1d6e02fd8c [project @ 1996-12-10 05:55:22 by jwe]
jwe
parents:
diff changeset
28
6e1d6e02fd8c [project @ 1996-12-10 05:55:22 by jwe]
jwe
parents:
diff changeset
29 template <class T>
2580
fa7dd5fc7c59 [project @ 1996-12-10 06:30:41 by jwe]
jwe
parents: 2579
diff changeset
30 SLStack<T>&
2579
6e1d6e02fd8c [project @ 1996-12-10 05:55:22 by jwe]
jwe
parents:
diff changeset
31 SLStack<T>::operator = (const SLStack<T>& s)
6e1d6e02fd8c [project @ 1996-12-10 05:55:22 by jwe]
jwe
parents:
diff changeset
32 {
6e1d6e02fd8c [project @ 1996-12-10 05:55:22 by jwe]
jwe
parents:
diff changeset
33 if (this != &s)
6e1d6e02fd8c [project @ 1996-12-10 05:55:22 by jwe]
jwe
parents:
diff changeset
34 p = s.p;
6e1d6e02fd8c [project @ 1996-12-10 05:55:22 by jwe]
jwe
parents:
diff changeset
35
6e1d6e02fd8c [project @ 1996-12-10 05:55:22 by jwe]
jwe
parents:
diff changeset
36 return *this;
6e1d6e02fd8c [project @ 1996-12-10 05:55:22 by jwe]
jwe
parents:
diff changeset
37 }
6e1d6e02fd8c [project @ 1996-12-10 05:55:22 by jwe]
jwe
parents:
diff changeset
38
6e1d6e02fd8c [project @ 1996-12-10 05:55:22 by jwe]
jwe
parents:
diff changeset
39 /*
6e1d6e02fd8c [project @ 1996-12-10 05:55:22 by jwe]
jwe
parents:
diff changeset
40 ;;; Local Variables: ***
6e1d6e02fd8c [project @ 1996-12-10 05:55:22 by jwe]
jwe
parents:
diff changeset
41 ;;; mode: C++ ***
6e1d6e02fd8c [project @ 1996-12-10 05:55:22 by jwe]
jwe
parents:
diff changeset
42 ;;; End: ***
6e1d6e02fd8c [project @ 1996-12-10 05:55:22 by jwe]
jwe
parents:
diff changeset
43 */