diff options
Diffstat (limited to 'ace/Pair_T.i')
-rw-r--r-- | ace/Pair_T.i | 20 |
1 files changed, 16 insertions, 4 deletions
diff --git a/ace/Pair_T.i b/ace/Pair_T.i index ecb8a1a50b7..7ef61c9cf44 100644 --- a/ace/Pair_T.i +++ b/ace/Pair_T.i @@ -1,7 +1,7 @@ // $Id$ template <class T1, class T2> ACE_INLINE -ACE_Pair<T1, T2>::ACE_Pair (const T1 &t1, +ACE_Pair<T1, T2>::ACE_Pair (const T1 &t1, const T2 &t2) : first_ (t1), second_ (t2) @@ -19,6 +19,12 @@ ACE_Pair<T1, T2>::first (void) return this->first_; } +template <class T1, class T2> ACE_INLINE const T1 & +ACE_Pair<T1, T2>::first (void) const +{ + return this->first_; +} + template <class T1, class T2> ACE_INLINE void ACE_Pair<T1, T2>::first (const T1 &t1) { @@ -31,6 +37,12 @@ ACE_Pair<T1, T2>::second (void) return this->second_; } +template <class T1, class T2> ACE_INLINE const T2 & +ACE_Pair<T1, T2>::second (void) const +{ + return this->second_; +} + template <class T1, class T2> ACE_INLINE void ACE_Pair<T1, T2>::second (const T2 &t2) { @@ -38,7 +50,7 @@ ACE_Pair<T1, T2>::second (const T2 &t2) } template <class T1, class T2> ACE_INLINE -ACE_Reference_Pair<T1, T2>::ACE_Reference_Pair (T1 &t1, +ACE_Reference_Pair<T1, T2>::ACE_Reference_Pair (T1 &t1, T2 &t2) : first_ (t1), second_ (t2) @@ -46,13 +58,13 @@ ACE_Reference_Pair<T1, T2>::ACE_Reference_Pair (T1 &t1, } template <class T1, class T2> ACE_INLINE T1 & -ACE_Reference_Pair<T1, T2>::first (void) +ACE_Reference_Pair<T1, T2>::first (void) const { return this->first_; } template <class T1, class T2> ACE_INLINE T2 & -ACE_Reference_Pair<T1, T2>::second (void) +ACE_Reference_Pair<T1, T2>::second (void) const { return this->second_; } |