TemplateHelper.h
Go to the documentation of this file.
00001 // this is a -*- C++ -*- file
00002 
00003 // -- BEGIN LICENSE BLOCK ----------------------------------------------
00004 // This file is part of FZIs ic_workspace.
00005 //
00006 // This program is free software licensed under the LGPL
00007 // (GNU LESSER GENERAL PUBLIC LICENSE Version 3).
00008 // You can find a copy of this license in LICENSE folder in the top
00009 // directory of the source code.
00010 //
00011 // © Copyright 2014 FZI Forschungszentrum Informatik, Karlsruhe, Germany
00012 //
00013 // -- END LICENSE BLOCK ------------------------------------------------
00014 
00015 //----------------------------------------------------------------------
00024 //----------------------------------------------------------------------
00025 #ifndef ICL_CORE_TEMPLATE_HELPER_H_INCLUDED
00026 #define ICL_CORE_TEMPLATE_HELPER_H_INCLUDED
00027 
00028 namespace icl_core {
00029 
00036 template <typename T>
00037 struct ConvertToRef
00038 {
00039   typedef const T& ToConstRef;
00040   typedef T& ToRef;
00041 };
00042 template <typename T>
00043 struct ConvertToRef<T&>
00044 {
00045   typedef T& ToConstRef;
00046   typedef T& ToRef;
00047 };
00048 
00049 
00059 template <typename T>
00060 struct DefaultConstruct
00061 {
00062   static T C()
00063   {
00064     return T();
00065   }
00066 };
00067 
00068 }
00069 
00070 #endif


schunk_svh_driver
Author(s): Georg Heppner
autogenerated on Fri Aug 28 2015 12:59:19