Movatterモバイル変換


[0]ホーム

URL:


cppreference.com
Namespaces
Variants
    Actions

      std::filesystem::path::empty

      From cppreference.com
      <cpp‎ |filesystem‎ |path
       
       
      Filesystem library
      Classes
      Functions
      File types
       
      std::filesystem::path
      Member types
      Member constants
      Member functions
      Path decomposition
      Non-member functions
      (until C++20)(until C++20)(until C++20)(until C++20)(until C++20)(C++20)
      Helper classes
       
      bool empty()constnoexcept;
      (since C++17)

      Checks if the path in generic format is empty.

      Contents

      [edit]Parameters

      (none)

      [edit]Return value

      true if the path is empty,false otherwise.

      [edit]Notes

      An empty path can be obtained by callingclear and by default-constructing apath. It can also be returned by a path decomposition function (such asextension) if the corresponding component is not present in the path.

      An empty path is classified as a relative path.

      [edit]See also

      constructs apath
      (public member function)[edit]
      Retrieved from "https://en.cppreference.com/mwiki/index.php?title=cpp/filesystem/path/empty&oldid=173010"

      [8]ページ先頭

      ©2009-2025 Movatter.jp