TemplateHelper.h
Go to the documentation of this file.
1 // this is a -*- C++ -*- file
2 
3 // -- BEGIN LICENSE BLOCK ----------------------------------------------
4 // This file is part of FZIs ic_workspace.
5 //
6 // This program is free software licensed under the LGPL
7 // (GNU LESSER GENERAL PUBLIC LICENSE Version 3).
8 // You can find a copy of this license in LICENSE folder in the top
9 // directory of the source code.
10 //
11 // © Copyright 2016 FZI Forschungszentrum Informatik, Karlsruhe, Germany
12 //
13 // -- END LICENSE BLOCK ------------------------------------------------
14 
15 //----------------------------------------------------------------------
24 //----------------------------------------------------------------------
25 #ifndef ICL_CORE_TEMPLATE_HELPER_H_INCLUDED
26 #define ICL_CORE_TEMPLATE_HELPER_H_INCLUDED
27 
28 namespace icl_core {
29 
36 template <typename T>
38 {
39  typedef const T& ToConstRef;
40  typedef T& ToRef;
41 };
42 template <typename T>
43 struct ConvertToRef<T&>
44 {
45  typedef T& ToConstRef;
46  typedef T& ToRef;
47 };
48 
49 
59 template <typename T>
61 {
62  static T C()
63  {
64  return T();
65  }
66 };
67 
68 }
69 
70 #endif


fzi_icl_core
Author(s):
autogenerated on Mon Jun 10 2019 13:17:58