ALPSCore reference
are_all_integrals.hpp
Go to the documentation of this file.
1 /*
2  * Copyright (C) 1998-2018 ALPS Collaboration. See COPYRIGHT.TXT
3  * All rights reserved. Use is subject to license terms. See LICENSE.TXT
4  * For use in publications, see ACKNOWLEDGE.TXT
5  */
6 //
7 // Created by Sergei on 2/22/18.
8 //
9 
10 #ifndef ALPSCORE_ARE_ALL_INTEGRALS_H
11 #define ALPSCORE_ARE_ALL_INTEGRALS_H
12 
13 #include <type_traits>
14 
15 template<typename I0, typename... I> struct are_all_integrals :
16  std::integral_constant<bool, std::is_integral<I0>::value && are_all_integrals<I...>::value>
17 {};
18 template<typename I0> struct are_all_integrals<I0> : std::is_integral<I0> {};
19 
20 #endif //ALPSCORE_ARE_ALL_INTEGERS_H