BloombergLP::bdls::PathUtil::appendIfValid

Append a relative filename to the end of a path.

Synopsis

Declared in <bdls_pathutil.h>

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

Description

Same as the overload taking bsl::string *.

Return Value

0 on success, and a non-zero value otherwise

Parameters

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