Changeset 50c8659 in git for factory/templates/ftmpl_functions.h
- Timestamp:
- Jun 29, 1998, 5:44:45 PM (25 years ago)
- Branches:
- (u'spielwiese', 'd0474371d8c5d8068ab70bfb42719c97936b18a6')
- Children:
- 030f132f22f4af7b7e819ab46ad07fcde54175cd
- Parents:
- 147c2a4c808ea309e2cf5a023a5d31e57724f662
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
factory/templates/ftmpl_functions.h
r147c2a r50c8659 1 1 /* emacs edit mode for this file is -*- C++ -*- */ 2 /* $Id: ftmpl_functions.h,v 1. 4 1998-03-11 10:47:02schmidt Exp $ */2 /* $Id: ftmpl_functions.h,v 1.5 1998-06-29 15:44:45 schmidt Exp $ */ 3 3 4 4 #ifndef INCL_FUNCTIONS_H … … 9 9 // ftmpl_functions.h - some useful template functions. 10 10 // 11 // Header file corresponds to: nothing 12 // 13 // Hierarchy: bottom, templates 14 // 15 // Developer note: 16 // --------------- 11 17 // Sooner or later you need them: functions to calculate the 12 18 // minimum or maximum of two values or the absolute value. Here … … 14 20 // file corresponding to `ftmpl_functions.h'. 15 21 // 16 // The functions are for internal use only (i.e. to build the22 // The functions are for internal use only (i.e., to build the 17 23 // library), hence they should not be included from `factory.h'. 18 24 // However, we have to install `ftmpl_functions.h' with the other 19 25 // templates since the functions have to be instantiated. 20 //21 // Used by: cf_gcd.cc, cf_map.cc, fac_ezgcd.cc, sm_sparsemod.cc,22 // ftmpl_inst.cc23 26 // 24 27 //}}} … … 31 34 // tmax() - return the maximum of `a' and `b'. 32 35 // 36 // Developers note: 37 // ---------------- 33 38 // `T' should have an `operator >()'. 34 39 // … … 46 51 // tmin() - return the minimum of `a' and `b'. 47 52 // 53 // Developers note: 54 // ---------------- 48 55 // `T' should have an `operator <()'. 49 56 // … … 61 68 // tabs() - return the absolute value of `a'. 62 69 // 70 // `a' is negated iff it is less or equal `T( 0 )'. 71 // 72 // Developers note: 73 // ---------------- 63 74 // `T' should have an `operator >()', an `operator -()', and a 64 75 // `T::T( int )' constructor.
Note: See TracChangeset
for help on using the changeset viewer.