file_size 함수

Returns the size, in bytes, of a file that has a specified name.

template<class Path>
unsigned long long file_size(
   const Path& Pval
);

매개 변수

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

반환 값

The size, in bytes, of the file that's designated by Pval, or 0 if the size cannot be determined.

요구 사항

헤더: filesystem

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

참고 항목

참조

<filesystem>

기타 리소스

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