is_regular_file 함수

Indicates whether the specified file_status or file name represents a regular file.

inline bool is_regular_file(
   file_status Stat
);
template<class Path>
inline bool is_regular_file(
   const Path& Pval
);

매개 변수

  • Stat
    file_status 개체

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

반환 값

The first function returns Stat.type() == regular_file. The second function returns is_regular_file(status(Pval)).

요구 사항

헤더: filesystem

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

참고 항목

참조

<filesystem>

file_type 열거형

status 함수

기타 리소스

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