operator== (STL)

使用 basic_pathbasic_directory_iteratorbasic_recursive_directory_iterator 对象的相等运算符。

template<class String, class Traits>
   bool operator==(
      const basic_path<String, Traits>& Left,
      const basic_path<String, Traits>& Right);
   bool operator==(
      const basic_directory_iterator<Path>& Left,
      const basic_directory_iterator<Path>& Right);
   bool operator==(
      const basic_recursive_directory_iterator<Path>& Left,
      const basic_recursive__directory_iterator<Path>& Right);

参数

  • Left
    左对象。

  • Right
    正确的对象。

返回值

第一个运算符返回 Left.string() == Right.string()。

第二个和第三个运算符返回 true,如果 Left 和 Right 存储非空的文件名,或者 Left 和 Right 存储空文件名称;否则,运算符返回 false。

要求

**标头:**文件系统

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

请参见

参考

<filesystem>

basic_path::string的方法

其他资源

标头文件