diff options
author | François Dumont <fdumont@gcc.gnu.org> | 2019-10-06 15:10:40 +0000 |
---|---|---|
committer | François Dumont <fdumont@gcc.gnu.org> | 2019-10-06 15:10:40 +0000 |
commit | 6e556303102ebadb15bf8b7b16f6693d8ffde371 (patch) | |
tree | 2411ba180e2539b93d66c25b78b157f6a882921c /libstdc++-v3/include/std/numeric | |
parent | 2c6374228bc0aef10b89e5dd9131dbf99477f753 (diff) | |
download | gcc-6e556303102ebadb15bf8b7b16f6693d8ffde371.zip gcc-6e556303102ebadb15bf8b7b16f6693d8ffde371.tar.gz gcc-6e556303102ebadb15bf8b7b16f6693d8ffde371.tar.bz2 |
Add C++11 __iterator_category_t template alias.
* include/bits/stl_iterator_base_types.h (__iterator_category_t): Define
for C++11.
(_RequireInputIte): Likewise and use __enable_if_t.
* include/std/numeric
(__is_random_access_iter): Use __iterator_category_t.
From-SVN: r276637
Diffstat (limited to 'libstdc++-v3/include/std/numeric')
-rw-r--r-- | libstdc++-v3/include/std/numeric | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/libstdc++-v3/include/std/numeric b/libstdc++-v3/include/std/numeric index 2392769..a164a9e 100644 --- a/libstdc++-v3/include/std/numeric +++ b/libstdc++-v3/include/std/numeric @@ -230,8 +230,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION /// @{ /// @cond undocumented - template<typename _It, typename _Traits = iterator_traits<_It>, - typename _Cat = typename _Traits::iterator_category> + template<typename _It, typename _Cat = __iterator_category_t<_It>> using __is_random_access_iter = is_base_of<random_access_iterator_tag, _Cat>; /// @endcond |