BloombergLP::bdls::PathUtil::appendIfValid

Append a relative filename to the end of a path.

Synopses

Declared in <bdls_pathutil.h>

Append a relative filename to the end of a path.

static
int
appendIfValid(
    bsl::string* path,
    std::string_view const& filename);
» more...

Append a relative filename to the end of a path.

static
int
appendIfValid(
    std::pmr::string* path,
    std::string_view const& filename);
» more...

Append a relative filename to the end of a path.

static
int
appendIfValid(
    std::string* path,
    std::string_view const& filename);
» more...

Return Value

0 on success, and a non-zero value otherwise

Parameters

NameDescription
pathpath to which filename is appended
filenamerelative path component to append