prime/include/rstl/pair.hpp

25 lines
423 B
C++
Raw Normal View History

#ifndef _RSTL_PAIR
#define _RSTL_PAIR
#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& operator=(const pair& other) {
first = other.first;
second = other.second;
return *this;
}
2022-04-11 22:42:08 +00:00
L first;
R second;
};
} // namespace rstl
#endif // _RSTL_PAIR