/usr/include/ace/Pair_T.h is in libace-dev 6.2.8+dfsg-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 | /* -*- C++ -*- */
//=============================================================================
/**
* @file Pair_T.h
*
* $Id: Pair_T.h 92097 2010-09-30 05:41:49Z msmit $
*
* @author Irfan Pyarali <irfan@cs.wustl.edu>
*/
//=============================================================================
#ifndef ACE_PAIR_T_H
#define ACE_PAIR_T_H
#include /**/ "ace/pre.h"
#include /**/ "ace/config-all.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
ACE_BEGIN_VERSIONED_NAMESPACE_DECL
/**
* @class ACE_Reference_Pair
*
* @brief Defines a pair that only hold references.
*
* Similar to the STL pair (but restricted to holding references
* and not copies).
*/
template <class T1, class T2>
class ACE_Reference_Pair
{
public:
// = Traits.
typedef T1 first_type;
typedef T2 second_type;
// = Initialization and termination methods.
/// Constructor.
ACE_Reference_Pair (T1 &t1,
T2 &t2);
/// Access first.
T1 &first (void) const;
/// Access second.
T2 &second (void) const;
// Compare pairs.
bool operator== (const ACE_Reference_Pair<T1, T2> &rhs) const;
protected:
/// First.
T1 &first_;
/// Second.
T2 &second_;
};
ACE_END_VERSIONED_NAMESPACE_DECL
#if defined (__ACE_INLINE__)
#include "ace/Pair_T.inl"
#endif /* __ACE_INLINE__ */
#if defined (ACE_TEMPLATES_REQUIRE_SOURCE)
#include "ace/Pair_T.cpp"
#endif /* ACE_TEMPLATES_REQUIRE_SOURCE */
#if defined (ACE_TEMPLATES_REQUIRE_PRAGMA)
#pragma implementation ("Pair_T.cpp")
#endif /* ACE_TEMPLATES_REQUIRE_PRAGMA */
#include /**/ "ace/post.h"
#endif /* ACE_PAIR_T_H */
|