|
Sacado Package Browser (Single Doxygen Collection) Version of the Day
|
00001 // *********************************************************************** 00002 // 00003 // Sacado Package 00004 // Copyright (2006) Sandia Corporation 00005 // 00006 // Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation, 00007 // the U.S. Government retains certain rights in this software. 00008 // 00009 // This library is free software; you can redistribute it and/or modify 00010 // it under the terms of the GNU Lesser General Public License as 00011 // published by the Free Software Foundation; either version 2.1 of the 00012 // License, or (at your option) any later version. 00013 // 00014 // This library is distributed in the hope that it will be useful, but 00015 // WITHOUT ANY WARRANTY; without even the implied warranty of 00016 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00017 // Lesser General Public License for more details. 00018 // 00019 // You should have received a copy of the GNU Lesser General Public 00020 // License along with this library; if not, write to the Free Software 00021 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 00022 // USA 00023 // Questions? Contact David M. Gay (dmgay@sandia.gov) or Eric T. Phipps 00024 // (etphipp@sandia.gov). 00025 // 00026 // *********************************************************************** 00027 // @HEADER 00028 00029 #ifndef SACADO_DUMMY_ARG_HPP 00030 #define SACADO_DUMMY_ARG_HPP 00031 00032 namespace Sacado { 00033 00035 template <class T> struct dummy_arg { 00036 operator T() const { return T(0.0); } 00037 }; 00038 00040 template <class T, class U> struct dummy { 00041 typedef U type; 00042 }; 00043 00045 template <class T> struct dummy<T,T> { 00046 typedef dummy_arg<T> type; 00047 }; 00048 00049 } // namespace Sacado 00050 00051 #endif // SACADO_DUMMY_ARG_HPP
1.7.4