Namespaces
Variants

std::filesystem::path:: has_root_path, std::filesystem::path:: has_root_name, std::filesystem::path:: has_root_directory, std::filesystem::path:: has_relative_path, std::filesystem::path:: has_parent_path, std::filesystem::path:: has_filename, std::filesystem::path:: has_stem, std::filesystem::path:: has_extension

From cppreference.net
bool has_root_path ( ) const ;
(1) (C++17부터)
bool has_root_name ( ) const ;
(2) (C++17부터)
bool has_root_directory ( ) const ;
(3) (C++17부터)
bool has_relative_path ( ) const ;
(4) (C++17부터)
bool has_parent_path ( ) const ;
(5) (C++17부터)
bool has_filename ( ) const ;
(6) (C++17부터)
bool has_stem ( ) const ;
(7) (C++17부터)
bool has_extension ( ) const ;
(8) (C++17부터)

경로가 해당 경로 요소를 포함하는지 확인합니다.

1) root_path() 가 비어 있는지 확인합니다.
2) root_name() 가 비어 있는지 확인합니다.
3) root_directory() 가 비어 있는지 확인합니다.
4) relative_path() 가 비어 있는지 확인합니다.
5) parent_path() 가 비어 있는지 확인합니다.
6) filename() 가 비어 있는지 확인합니다.
7) stem() 가 비어 있는지 확인합니다.
8) extension() 가 비어 있는지 확인합니다.

목차

매개변수

(없음)

반환값

true 해당 경로 구성 요소가 비어 있지 않은 경우, false 그렇지 않은 경우.

예외

구현에서 정의된 예외를 던질 수 있습니다.

예제

참고 항목

경로가 비어 있는지 확인
(public member function)