prime/include/rstl/pair.hpp
Henrique Gemignani Passos Lima 077a16896f Add CMemoryCardDriver::CMemoryCardDriver
Former-commit-id: 8d49e80502ce1c765f0477388a843100ea31b04b
2022-10-11 00:46:32 +03:00

25 lines
423 B
C++

#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) {}
inline pair& operator=(const pair& other) {
first = other.first;
second = other.second;
return *this;
}
L first;
R second;
};
} // namespace rstl
#endif // _RSTL_PAIR