FougTools  0.7.0dev-046fb6a
Handy tools for C++, Qt and OpenCascade
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
norm_traits.h
Go to the documentation of this file.
1 /****************************************************************************
2 ** FougTools
3 ** Copyright Fougue (30 Mar. 2015)
4 ** contact@fougue.pro
5 **
6 ** This software is a computer program whose purpose is to provide utility
7 ** tools for the C++ language and the Qt toolkit.
8 **
9 ** This software is governed by the CeCILL-C license under French law and
10 ** abiding by the rules of distribution of free software. You can use,
11 ** modify and/ or redistribute the software under the terms of the CeCILL-C
12 ** license as circulated by CEA, CNRS and INRIA at the following URL
13 ** "http://www.cecill.info".
14 ****************************************************************************/
15 
16 #ifndef MATHTOOLS_NORM_TRAITS_H
17 #define MATHTOOLS_NORM_TRAITS_H
18 
19 #include <cstddef>
20 #include "num_traits.h"
21 
22 namespace math {
23 namespace internal {
24 
25 template<typename T> typename NumTraits<T>::Real typeHelper(const T&) { return 0; }
26 
27 struct NormSpecializationTag { };
28 struct DefaultNormSpecializationTag { };
29 struct ArityNormSpecializationTag { };
30 
31 template<typename FUNC>
32 struct NormTraits
33 {
34  typedef NormSpecializationTag NormCategory;
35 };
36 
37 } // namespace internal
38 } // namespace math
39 
40 #endif // MATHTOOLS_NORMS_NORM_TRAITS_H
Definition: consts.h:18