separate make pair
This commit is contained in:
23
headers/make_pair.hpp
Normal file
23
headers/make_pair.hpp
Normal file
@@ -0,0 +1,23 @@
|
||||
#ifndef MAKE_PAIR_HPP
|
||||
# define MAKE_PAIR_HPP
|
||||
|
||||
# define PR_TPL template < class T1, class T2 >
|
||||
# define PR pair<T1, T2>
|
||||
|
||||
#include "pair.hpp"
|
||||
|
||||
namespace ft {
|
||||
|
||||
PR_TPL PR
|
||||
make_pair(T1 x, T2 y) {
|
||||
|
||||
return PR(x, y) ;
|
||||
}
|
||||
|
||||
} // namespace ft
|
||||
|
||||
# undef PR
|
||||
# undef PR_TPL
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user