summaryrefslogtreecommitdiff
path: root/ace/Pair_T.h
diff options
context:
space:
mode:
authorirfan <irfan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2000-01-10 21:49:19 +0000
committerirfan <irfan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2000-01-10 21:49:19 +0000
commit1ae9901fe49f4aff784405309f4698cae32d2193 (patch)
tree4fba34ab41774bfa29bb669dc9e36e00f6bfaea6 /ace/Pair_T.h
parent7508016d621ebcfafce8144af0fc10bcf3bf9f52 (diff)
downloadATCD-1ae9901fe49f4aff784405309f4698cae32d2193.tar.gz
ChangeLogTag: Mon Jan 10 15:37:22 2000 Irfan Pyarali <irfan@cs.wustl.edu>
Diffstat (limited to 'ace/Pair_T.h')
-rw-r--r--ace/Pair_T.h14
1 files changed, 8 insertions, 6 deletions
diff --git a/ace/Pair_T.h b/ace/Pair_T.h
index cb329cf391b..7e67cbf2e4f 100644
--- a/ace/Pair_T.h
+++ b/ace/Pair_T.h
@@ -26,7 +26,7 @@
template <class T1, class T2>
class ACE_Pair
{
- // = TITLE
+ // = TITLE
// Defines a pair.
//
// = DESCRIPTION
@@ -38,7 +38,7 @@ public:
typedef T2 second_type;
// = Initialization and termination methods.
- ACE_Pair (const T1 &t1,
+ ACE_Pair (const T1 &t1,
const T2 &t2);
// Constructor.
@@ -46,10 +46,12 @@ public:
// Default constructor.
T1 &first (void);
+ const T1 &first (void) const;
void first (const T1 &t1);
// Get/Set first.
T2 &second (void);
+ const T2 &second (void) const;
void second (const T2 &t2);
// Access second.
@@ -62,7 +64,7 @@ protected:
template <class T1, class T2>
class ACE_Reference_Pair
{
- // = TITLE
+ // = TITLE
// Defines a pair that only hold references.
//
// = DESCRIPTION
@@ -75,14 +77,14 @@ public:
typedef T2 second_type;
// = Initialization and termination methods.
- ACE_Reference_Pair (T1 &t1,
+ ACE_Reference_Pair (T1 &t1,
T2 &t2);
// Constructor.
- T1 &first (void);
+ T1 &first (void) const;
// Access first.
- T2 &second (void);
+ T2 &second (void) const;
// Access second.
protected: