std::experimental::filesystem::path:: begin, std::experimental::filesystem::path:: end
From cppreference.net
<
cpp
|
experimental
|
fs
|
path
C++
Experimental
| Technical Specification | ||||
| Filesystem library (filesystem TS) | ||||
| Library fundamentals (library fundamentals TS) | ||||
| Library fundamentals 2 (library fundamentals TS v2) | ||||
| Library fundamentals 3 (library fundamentals TS v3) | ||||
| Extensions for parallelism (parallelism TS) | ||||
| Extensions for parallelism 2 (parallelism TS v2) | ||||
| Extensions for concurrency (concurrency TS) | ||||
| Extensions for concurrency 2 (concurrency TS v2) | ||||
| Concepts (concepts TS) | ||||
| Ranges (ranges TS) | ||||
| Reflection (reflection TS) | ||||
| Mathematical special functions (special functions TR) | ||||
| Experimental Non-TS | ||||
| Pattern Matching | ||||
| Linear Algebra | ||||
| std::execution | ||||
| Contracts | ||||
| 2D Graphics |
Filesystem library
| Classes | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Functions | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| File types | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
path
| Member functions | ||||
| Path decomposition | ||||
| Non-member functions | ||||
|
iterator begin
(
)
const
;
|
(1) | (filesystem TS) |
|
iterator end
(
)
const
;
|
(2) | (filesystem TS) |
1)
パスの最初の要素へのイテレータを返します。パスが空の場合、返されるイテレータは
end()
と等しくなります。
2)
パスの最後の要素の1つ先を指すイテレータを返します。このイテレータをデリファレンスする動作は未定義です。
このイテレータのペアによって示されるシーケンスは以下の要素で構成されます:
1)
root-name
(存在する場合)。
2)
root-directory
(存在する場合)。
3)
file-name
のシーケンス。ディレクトリ区切り文字はすべて省略されます。
4)
パスの最後の
file-name
の後にディレクトリ区切り文字がある場合、終端イテレータの前の最後の要素は架空の
dot
ファイル名となります。
目次 |
パラメータ
(なし)
戻り値
1)
パスの最初の要素へのイテレータ。
2)
パスの終端を超えたイテレータ。
例外
実装定義の例外をスローする可能性があります。
例
このコードを実行
出力:
Examining the path "C:\users\abcdef\AppData\Local\Temp\" through iterators gives "C:" "/" "users" "abcdef" "AppData" "Local" "Temp" "."