equivalent 함수

Specifies whether two file names reference the same file.

template<class Path1, class Path2>
inline bool equivalent(
   const Path1& Pval1,
   const Path2& Pval2
);

매개 변수

  • Pval1
    Path 개체 Path 는 basic_path 또는 basic_path에서 파생된 형식 중 하나일 수 있습니다.

  • Pval2
    Path 개체

반환 값

true if the stored file names of both Path objects reference the same file; false if the file names do not match.

설명

If neither Pval1 nor Pval2 reference an existing regular file, directory, or symbolic link, the function throws a basic_filesystem_error.

요구 사항

헤더: filesystem

Namespace: std::tr2::sys

참고 항목

참조

<filesystem>

기타 리소스

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