mirror of
https://github.com/EnderIce2/Fennix.git
synced 2025-07-08 13:59:17 +00:00
Rename std functions to match the standard
This commit is contained in:
22
include/std/utility.hpp
Normal file
22
include/std/utility.hpp
Normal file
@ -0,0 +1,22 @@
|
||||
#ifndef __FENNIX_KERNEL_STD_UTILITY_H__
|
||||
#define __FENNIX_KERNEL_STD_UTILITY_H__
|
||||
|
||||
#include <types.h>
|
||||
|
||||
namespace std
|
||||
{
|
||||
template <typename T1, typename T2>
|
||||
struct pair
|
||||
{
|
||||
typedef T1 first_type;
|
||||
typedef T2 second_type;
|
||||
|
||||
T1 first;
|
||||
T2 second;
|
||||
|
||||
pair() : first(T1()), second(T2()) {}
|
||||
pair(const T1 &x, const T2 &y) : first(x), second(y) {}
|
||||
};
|
||||
}
|
||||
|
||||
#endif // !__FENNIX_KERNEL_STD_UTILITY_H__
|
Reference in New Issue
Block a user