assign sfinae is integral detection

This commit is contained in:
hugogogo
2022-06-08 15:24:44 +02:00
parent 647b6eee25
commit 8c232df375
5 changed files with 155 additions and 6 deletions

16
headers/enable_if.hpp Normal file
View File

@@ -0,0 +1,16 @@
#ifndef ENABLE_IF_HPP
# define ENABLE_IF_HPP
namespace ft {
template <bool B, class T = void>
struct enable_if {};
template <class T>
struct enable_if<true, T> { typedef T type; };
} // namespace ft
#endif