assign sfinae is integral detection
This commit is contained in:
16
headers/enable_if.hpp
Normal file
16
headers/enable_if.hpp
Normal 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
|
||||
|
||||
Reference in New Issue
Block a user