File indexing completed on 2024-03-24 05:54:38
0001 /* 0002 * SPDX-FileCopyrightText: 2002-2003 Jesper K. Pedersen <blackie@kde.org> 0003 * 0004 * SPDX-License-Identifier: LGPL-2.0-only 0005 **/ 0006 #ifndef __pair_h 0007 #define __pair_h 0008 0009 /** 0010 @internal 0011 */ 0012 template<class F, class S> 0013 class Pair 0014 { 0015 public: 0016 Pair() 0017 { 0018 } 0019 0020 Pair(F first, S second) 0021 : _first(first) 0022 , _second(second) 0023 { 0024 } 0025 0026 F first() 0027 { 0028 return _first; 0029 } 0030 0031 S second() 0032 { 0033 return _second; 0034 } 0035 0036 private: 0037 F _first; 0038 S _second; 0039 }; 0040 0041 #endif // __pair_h