left [MTL Home] Programmers Guide
  Contents | Index |  Search 


Category:intervals,utilities Component type:function
Prototype
template <class Tnum>
const Tnum& left(const interval<Tnum>& x) ;
Description
Returns a constant reference to the left(lower) bound of an interval. Non-member version of interval::left(). Equivilant to inf() or left().
Definition
interval.cct
Preconditions
Complexity
Example
In left_right.cc:
  dint A(1,1);
  cout << "A       :" << A << endl;
  cout << "A.inf()   :" << A.inf() << endl;
  cout << "A.sup()   :" << A.sup() << endl;
  cout << "left(A)   :" << left(A) << endl;
  cout << "right(A)  :" << right(A) << endl;
  cout << "A.left()  :" << A.left() << endl;
  cout << "A.right() :" << A.right() << endl << endl;

Notes
See also

[MTL Home] Copyright © 1998,1999 University of Notre Dame. All Rights Reserved.