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