Path operator/(const Path &p) const;
Path &operator/=(const Path &);
- /**
- Extracts a single component from the path. Negative indices count from the
- end of the path.
- */
+ /** Extracts a single component from the path. Negative indices count from
+ the end of the path. */
std::string operator[](int) const;
bool operator==(const Path &) 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 &);
};