17 lines
213 B
C++
17 lines
213 B
C++
#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
|
|
|