X-Git-Url: http://git.tdb.fi/?p=libs%2Fcore.git;a=blobdiff_plain;f=source%2Fpath.h;h=9e1e3747fed37c0b6687ee48c0925071bbccd6ea;hp=f52362230ebf538468734aa4ddfd1e2cc32e0df9;hb=4cc2d6ced17e8cbe1ae3251069131d22a292b857;hpb=e5f6f4e42a73330b2ec0d88f8013cecd03ec3bc0 diff --git a/source/path.h b/source/path.h index f523622..9e1e374 100644 --- a/source/path.h +++ b/source/path.h @@ -45,7 +45,8 @@ public: Path(const std::string &p) { init(p); } Path(const char *p) { init(p); } const std::string &str() const { return path; } - unsigned size() const; + unsigned size() const; + bool empty() const { return path.empty(); } bool is_absolute() const; Path subpath(unsigned, unsigned =(unsigned)-1) const; Path operator/(const Path &p) const { Path a=*this; a/=p; return a; }