• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Copyright 2018-2019 Hans Dembinski
2 //
3 // Distributed under the Boost Software License, Version 1.0.
4 // (See accompanying file LICENSE_1_0.txt
5 // or copy at http://www.boost.org/LICENSE_1_0.txt)
6 
7 #ifndef BOOST_HISTOGRAM_DETAIL_CONVERT_INTEGER_HPP
8 #define BOOST_HISTOGRAM_DETAIL_CONVERT_INTEGER_HPP
9 
10 #include <type_traits>
11 
12 namespace boost {
13 namespace histogram {
14 namespace detail {
15 
16 template <class T, class U>
17 using convert_integer =
18     std::conditional_t<std::is_integral<std::decay_t<T>>::value, U, T>;
19 
20 }
21 } // namespace histogram
22 } // namespace boost
23 
24 #endif
25