다음을 통해 공유


operator==(STL)

Equality operator that's used with basic_path, basic_directory_iterator, and basic_recursive_directory_iterator objects.

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
    The left object.

  • Right
    The right object.

반환 값

The first operator returns Left.string() == Right.string().

The second and third operators return true if both Left and Right store non-empty file names or if both Left and Right store empty file names; otherwise, the operators return false.

요구 사항

헤더: filesystem

네임스페이스: std::tr2::sys

참고 항목

참조

<filesystem>

basic_path::string 메서드

기타 리소스

C++ 표준 라이브러리 헤더 파일