operator==,!=,<,<=,>,>= (std::experimental::filesystem::path)
|
bool
operator
==
(
const
path
&
lhs,
const
path
&
rhs
)
;
|
(1) | (filesystem TS) |
|
bool
operator
!
=
(
const
path
&
lhs,
const
path
&
rhs
)
;
|
(2) | (filesystem TS) |
|
bool
operator
<
(
const
path
&
lhs,
const
path
&
rhs
)
;
|
(3) | (filesystem TS) |
|
bool
operator
<=
(
const
path
&
lhs,
const
path
&
rhs
)
;
|
(4) | (filesystem TS) |
|
bool
operator
>
(
const
path
&
lhs,
const
path
&
rhs
)
;
|
(5) | (filesystem TS) |
|
bool
operator
>=
(
const
path
&
lhs,
const
path
&
rhs
)
;
|
(6) | (filesystem TS) |
2つのパスを辞書順に比較します。
目次 |
パラメータ
| lhs, rhs | - | 比較対象のパス |
戻り値
true 対応する比較が真となる場合は、 false それ以外の場合。
例外
注記
パスの等価性と同値性は異なるセマンティクスを持ちます。
等価性の場合、
operator==
によって決定されるように、字句表現のみが比較されます。したがって、
path
(
"a"
)
==
path
(
"b"
)
が
true
になることは決してありません。
等価性の場合、 equivalent() によって決定されるように、2つのパスが同じファイルシステムオブジェクトに 解決される かどうかがチェックされます。したがって、 equivalent ( "a" , "b" ) は、パスが同じファイルに解決される場合に true を返します。
関連項目
|
2つのパスの字句表現を辞書順に比較する
(公開メンバ関数) |