Chemical Data Processing Library C++ API - Version 1.1.1
CDPL
Math
CommonType.hpp
Go to the documentation of this file.
1
/*
2
* CommonType.hpp
3
*
4
* Copyright (C) 2003 Thomas Seidel <thomas.seidel@univie.ac.at>
5
*
6
* This library is free software; you can redistribute it and/or
7
* modify it under the terms of the GNU Lesser General Public
8
* License as published by the Free Software Foundation; either
9
* version 2 of the License, or (at your option) any later version.
10
*
11
* This library is distributed in the hope that it will be useful,
12
* but WITHOUT ANY WARRANTY; without even the implied warranty of
13
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14
* Lesser General Public License for more details.
15
*
16
* You should have received a copy of the GNU Lesser General Public License
17
* along with this library; see the file COPYING. If not, write to
18
* the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
19
* Boston, MA 02111-1307, USA.
20
*/
21
27
#ifndef CDPL_MATH_COMMONTYPE_HPP
28
#define CDPL_MATH_COMMONTYPE_HPP
29
30
#include <type_traits>
31
32
33
namespace
CDPL
34
{
35
36
namespace
Math
37
{
38
39
template
<
typename
T1,
typename
T2>
40
struct
CommonType
41
{
42
43
typedef
typename
std::common_type<T1, T2>::type
Type
;
44
};
45
}
// namespace Math
46
}
// namespace CDPL
47
48
#endif // CDPL_MATH_COMMONTYPE_HPP
CDPL::Math::CommonType::Type
std::common_type< T1, T2 >::type Type
Definition:
CommonType.hpp:43
CDPL::Math::CommonType
Definition:
CommonType.hpp:41
CDPL
The namespace of the Chemical Data Processing Library.
Generated by
1.8.20