LIBINT  2.1.0-stable
type_traits.h
1 /*
2  * This file is a part of Libint.
3  * Copyright (C) 2004-2015 Edward F. Valeev
4  *
5  * This program is free software: you can redistribute it and/or modify
6  * it under the terms of the GNU Library General Public License, version 2,
7  * as published by the Free Software Foundation.
8  *
9  * This program is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  * GNU General Public License for more details.
13  *
14  * You should have received a copy of the GNU Library General Public License
15  * along with this program. If not, see http://www.gnu.org/licenses/.
16  *
17  */
18 
19 #ifndef _libint2_include_libint2_typetraits_h_
20 #define _libint2_include_libint2_typetraits_h_
21 
22 namespace libint2 {
23 
24  template <typename T>
25  struct is_vector {
26  static const bool value = false;
27  };
28 
29  template <typename T>
30  struct vector_traits {
31  typedef T value_type;
32  static const size_t extent = 1;
33  };
34 
35 } // namespace libint2
36 
37 #endif /* _libint2_include_libint2_typetraits_h_ */
Definition: type_traits.h:30
Defaults definitions for various parameters assumed by Libint.
Definition: algebra.cc:23
Definition: type_traits.h:25