friend bool operator==(const Iterator& x, const Iterator& y);
, const typename Container<T>::Iterator&. , , Container T, operator==.
operator== , . , operator==, , - , Container. .
, , , .
, , , :
template <typename T>
class Container_Iterator;
template <typename T> bool operator==(const Container_Iterator<T>& x,
const Container_Iterator<T>& y);
template <typename T>
class Container
{
public:
typedef Container_Iterator<T> Iterator;
};
template <typename T>
class Container_Iterator {
friend bool operator==<T>(const Container_Iterator<T>& x,
const Container_Iterator<T>& y);
};
operator== , operator== .