QMCPACK
type_mapping.hpp
Go to the documentation of this file.
1 //////////////////////////////////////////////////////////////////////////////////////
2 // This file is distributed under the University of Illinois/NCSA Open Source License.
3 // See LICENSE file in top directory for details.
4 //
5 // Copyright (c) 2021 QMCPACK developers
6 //
7 // File developed by: Peter Doak, doakpw@ornl.gov, Oak Ridge National Lab
8 //
9 // File created by: Peter Doak, doakpw@ornl.gov, Oak Ridge National Lab
10 //////////////////////////////////////////////////////////////////////////////////////
11 
12 #ifndef QMCPLUSPLUS_TYPE_MAPPING_H
13 #define QMCPLUSPLUS_TYPE_MAPPING_H
14 
15 #include <type_traits>
16 
17 namespace qmcplusplus
18 {
19 
20 template<typename V1, typename V2, typename T>
21 struct OnTypesEqual : std::bool_constant<std::is_same<V1, V2>::value>
22 {
23  using type = T;
24 };
25 
26 template<typename T>
27 struct default_type : std::true_type
28 {
29  using type = T;
30 };
31 } // namespace qmcplusplus
32 
33 #endif
helper functions for EinsplineSetBuilder
Definition: Configuration.h:43