- Iterator begin() const;
- Iterator end() const;
-private:
- void init(const std::string &);
-
- /** Adds a component to the path. It must not contain the directory
- separator character. */
- void add_component(const std::string &);
+ bool operator<(const Path &) const;
+ bool operator>(const Path &) const;
+ bool operator<=(const Path &other) const { return !(*this>other); }
+ bool operator>=(const Path &other) const { return !(*this<other); }
+ bool operator!=(const Path &other) const { return !(*this==other); }
+
+ Iterator begin() const { return Iterator::at_begin(*this); }
+ Iterator end() const { return Iterator::at_end(*this); }