2022-04-10 00:17:06 +00:00
|
|
|
#ifndef _RSTL_PAIR_HPP
|
|
|
|
#define _RSTL_PAIR_HPP
|
|
|
|
|
|
|
|
#include "types.h"
|
|
|
|
|
|
|
|
namespace rstl {
|
|
|
|
template < typename L, typename R >
|
|
|
|
class pair {
|
|
|
|
public:
|
|
|
|
inline pair() {}
|
|
|
|
inline pair(const L& first, const R& second) : first(first), second(second) {}
|
2022-04-11 22:42:08 +00:00
|
|
|
inline pair(const pair& other) : first(other.first), second(other.second) {}
|
|
|
|
inline void operator=(const pair& other) { first = other.first; second = other.second; }
|
|
|
|
|
|
|
|
L first;
|
|
|
|
R second;
|
2022-04-10 00:17:06 +00:00
|
|
|
};
|
|
|
|
} // namespace rstl
|
|
|
|
|
|
|
|
#endif
|