summaryrefslogtreecommitdiff
path: root/graphs/cpp/path/path.cc
blob: bff3a55b7cc932837aa4b61d9b77ff7dea75e867 (plain)
1
2
3
4
5
6
7
8
9
10
#include "path.hh"

Path& Path::join(const std::string& tail, bool is_file)
{
    if (final_)
        return *this;
    path_.push_back(tail);
    final_ = is_file;
    return *this;
}