basic_path::operator=运算符

赋新值设置为存储的文件名。

basic_path& operator=(
   const basic_path& Right
);
basic_path& operator=(
   basic_path&& Right
);
basic_path& operator=(
   const string_type& Str
);
basic_path& operator=(
   const value_type *Ptr
);

参数

  • Right
    basic_path 对象的引用。第二个方法采用 rvalue 引用

  • Str
    类型的字符串和存储的文件名相同。

  • Ptr
    对数组的指针字符。字符类型为存储的文件名的 value_type

返回值

在存储的文件名后的*this 替换。

要求

**标头:**文件系统

**命名空间:**std::tr2::sys

请参见

参考

basic_path选件类

<filesystem>