revisions 846:897 into trunk, with approval and peer review of manager (Luca).


git-svn-id: svn://svn.gna.org/svn/sgpemv2/trunk@898 3ecf2c5c-341e-0410-92b4-d18e462d057c
This commit is contained in:
tchernobog 2006-08-17 23:30:49 +00:00
parent 2ff87baadf
commit e27ba77fed
15 changed files with 1399 additions and 1044 deletions

View file

@ -51,6 +51,18 @@ public:
const In& operator->() const
{ return Iseq::first; }
bool operator==(const Iseq& i) const
{ return Iseq::first == i.first; }
bool operator!=(const Iseq& i) const
{ return Iseq::first != i.first; }
// bool operator==(const In& i) const
// { return Iseq::first == i; }
// bool operator!=(const In& i) const
// { return Iseq::first != i; }
};
@ -59,7 +71,7 @@ public:
template<class Container>
Iseq<typename Container::const_iterator>
iseq(const Container& c)
const_iseq(const Container& c)
{
return Iseq<typename Container::const_iterator>(c.begin(), c.end());
}
@ -77,7 +89,7 @@ iseq(Container& c)
template<class Container>
Iseq<typename Container::const_reverse_iterator>
r_iseq(const Container& c)
const_riseq(const Container& c)
{
return Iseq<typename Container::const_reverse_iterator>(c.rbegin(), c.rend());
}
@ -85,7 +97,7 @@ r_iseq(const Container& c)
template<class Container>
Iseq<typename Container::reverse_iterator>
r_iseq(Container& c)
riseq(Container& c)
{
return Iseq<typename Container::reverse_iterator>(c.rbegin(), c.rend());
}