1/*
2Copyright 2003 The Trustees of Indiana University
3
4Authors: Jaakko Jarvi (jajarvi at osl.iu.edu)
5 Jeremiah Willcock (jewillco at osl.iu.edu)
6 Andrew Lumsdaine (lums at osl.iu.edu)
7
8Copyright 2018 Glen Joseph Fernandes
9(glenjofe@gmail.com)
10
11Distributed under the Boost Software License,
12Version 1.0. (See accompanying file LICENSE_1_0.txt
13or copy at http://www.boost.org/LICENSE_1_0.txt)
14*/
15#ifndef BOOST_TT_ENABLE_IF_HPP_INCLUDED
16#define BOOST_TT_ENABLE_IF_HPP_INCLUDED
17
18#include <boost/config.hpp>
19
20namespace boost {
21
22template<bool B, class T = void>
23struct enable_if_ {
24 typedef T type;
25};
26
27template<class T>
28struct enable_if_<false, T> { };
29
30#if !defined(BOOST_NO_CXX11_TEMPLATE_ALIASES)
31template<bool B, class T = void>
32using enable_if_t = typename enable_if_<B, T>::type;
33#endif
34
35} /* boost */
36
37#endif
38

source code of include/boost/type_traits/enable_if.hpp