| |||||||
| |||||||
![]() | |||||||
Prototype | |||||||
template <class Tnum> const Tnum& right(const interval<Tnum>& x) ; | |||||||
![]() | |||||||
Description | |||||||
Returns a constant reference to the right(upper) bound of an interval.
Non-member version of interval::right() .
Equivilant to sup() or right() .
| |||||||
![]() | |||||||
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 | |||||||
Copyright ©
1998,1999 University of Notre Dame. All Rights Reserved.