source: git/factory/templates/ftmpl_functions.h @ 8c0163

spielwiese
Last change on this file since 8c0163 was 8c0163, checked in by Jens Schmidt <schmidt@…>, 26 years ago
#include <config.h> added the header config.h will be included be makeheader git-svn-id: file:///usr/local/Singular/svn/trunk@161 2c84dea3-7e68-4137-9b89-c4e89433aadc
  • Property mode set to 100644
File size: 504 bytes
Line 
1// emacs mode for this file is -*- C++ -*-
2// $Id: ftmpl_functions.h,v 1.1 1997-04-15 10:09:07 schmidt Exp $
3
4#ifndef INCL_TMPLFUNCTIONS_H
5#define INCL_TMPLFUNCTIONS_H
6
7/*
8$Log: not supported by cvs2svn $
9Revision 1.0  1996/05/17 11:06:32  stobbe
10Initial revision
11
12*/
13
14/*MAKEHEADER*/
15#include "templates/config.h"
16
17template<class T>
18inline T tmax( const T & a, const T & b )
19{
20  return (a > b) ? a : b;
21}
22
23template<class T>
24inline T tmin( const T & a, const T & b )
25{
26  return (a < b) ? a : b;
27}
28
29#endif
Note: See TracBrowser for help on using the repository browser.