diff options
| author | Eric Fiselier <eric@efcs.ca> | 2019-11-18 01:46:58 -0500 |
|---|---|---|
| committer | Eric Fiselier <eric@efcs.ca> | 2019-11-18 01:49:32 -0500 |
| commit | f82dba019253ced73ceadfde10e5f150bdb182f3 (patch) | |
| tree | 5f1d9d225c5fc60ca6fd1f933bf61e5a03ea77af /libcxx/include/filesystem | |
| parent | 783cb86b616d9de59213ea17649d6e2df8c1ebbb (diff) | |
| download | bcm5719-llvm-f82dba019253ced73ceadfde10e5f150bdb182f3.tar.gz bcm5719-llvm-f82dba019253ced73ceadfde10e5f150bdb182f3.zip | |
Rename __is_foo_iterator traits to reflect their Cpp17 nature.
With the upcoming introduction of iterator concepts in ranges,
the meaning of "__is_contiguous_iterator" changes drastically.
Currently we intend it to mean "does it have this iterator category",
but it could now also mean "does it meet the requirements of this
concept", and these can be different.
Diffstat (limited to 'libcxx/include/filesystem')
| -rw-r--r-- | libcxx/include/filesystem | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libcxx/include/filesystem b/libcxx/include/filesystem index 9020a12fea1..0f7a4d55698 100644 --- a/libcxx/include/filesystem +++ b/libcxx/include/filesystem @@ -625,7 +625,7 @@ struct __is_pathable_char_array<_Source, _ECharT*, _UPtr, true> static _ECharT __first_or_null(const _ECharT* __b) { return *__b; } }; -template <class _Iter, bool _IsIt = __is_input_iterator<_Iter>::value, +template <class _Iter, bool _IsIt = __is_cpp17_input_iterator<_Iter>::value, class = void> struct __is_pathable_iter : false_type {}; @@ -708,14 +708,14 @@ template <> struct _PathCVT<char> { template <class _Iter> - static typename enable_if<__is_exactly_input_iterator<_Iter>::value>::type + static typename enable_if<__is_exactly_cpp17_input_iterator<_Iter>::value>::type __append_range(string& __dest, _Iter __b, _Iter __e) { for (; __b != __e; ++__b) __dest.push_back(*__b); } template <class _Iter> - static typename enable_if<__is_forward_iterator<_Iter>::value>::type + static typename enable_if<__is_cpp17_forward_iterator<_Iter>::value>::type __append_range(string& __dest, _Iter __b, _Iter __e) { __dest.__append_forward_unsafe(__b, __e); } |

