Division operators
Synopses
Declared in <bsl_filesystem.h>
Return the concatenation of the specified path and the specified string using the preferred directory separator if appropriate.
template<
class t_PATH,
class t_STRING,
int = 0>
requires std::conjunction_v<std::is_base_of<filesystem::path, t_PATH>,
std::is_base_of<bsl::string, t_STRING> >
std::filesystem::path
operator/(
t_PATH path,
t_STRING const& string);
Return the concatenation of the specified string and the specified path using the preferred directory separator if appropriate.
template<
class t_PATH,
class t_STRING,
int = 0>
requires std::conjunction_v<std::is_base_of<filesystem::path, t_PATH>,
std::is_base_of<bsl::string, t_STRING> >
std::filesystem::path
operator/(
t_STRING const& string,
t_PATH const& path);
Return Value
-
path formed by appending
stringtopath -
path formed by appending
pathtostring
Parameters
Name |
Description |
path |
left‐hand path operand |
string |
string to concatenate after |
Created with MrDocs