Type: info
         Title: + class o3tl::range<>
     Posted by: [EMAIL PROTECTED]
      Affected: o3tl
Effective from: CWS np1


*Summary*
--------
+ template <class T> class o3tl::range;

Defined types:
+ typedef  T    element_type;       
+ typedef range<T>  self;

Member Functions:
+ range( T i_inclusiveLowerBorder, T                   i_exclusiveUpperBorder );
+ ~range();
+ T begin() const;
+ T end() const;
+ std::size_t size() const;
+ bool contains(T i_value ) const;
+ bool contains(const self & i_other ) const;
+ bool overlaps(const self & i_other ) const;
+ long distance_to(const self & i_other ) const;

Global Functions (within namespace o3tl):
+ template <class T> range<T> make_range(T i1, T i2);
+ template <class T> range<typename T::const_iterator> 
range_of(const T & i_container);
+ template <class T> range<typename T::iterator> range_of(T & io_container);



*Description*
-------------
o3tl::range<> provides the possibility to use a single object to
represent a range instead of a pair of numbers, pointers or iterators.

Template type T: Has to be an integer type, a pointer type or a
random-access iterator.

The lower border (begin()) is always inclusive, the upper border
(end()) is always exclusive.



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to