safe_iterator.h (_Safe_iterator<>::_M_constant()): Rename in...
authorFrançois Dumont <fdumont@gcc.gnu.org>
Wed, 9 May 2018 20:04:46 +0000 (20:04 +0000)
committerFrançois Dumont <fdumont@gcc.gnu.org>
Wed, 9 May 2018 20:04:46 +0000 (20:04 +0000)
commit6c882d0fdc2b2d4147419f12cad96bfa082622f0
tree8616d607055091143934de916e006a30776934bc
parentbb6cb6e3e2ea0e2f8c263f933792d639af4be3d5
safe_iterator.h (_Safe_iterator<>::_M_constant()): Rename in...

2018-05-09  François Dumont  <fdumont@gcc.gnu.org>

* include/debug/safe_iterator.h (_Safe_iterator<>::_M_constant()):
Rename in...
(_Safe_iterator<>::_S_constant()): ...that.
* include/debug/safe_local_iterator.h
(_Safe_local_iterator<>::_M_constant()): Rename in...
(_Safe_local_iterator<>::_S_constant()): ...that.
* include/debug/formatter.h: Remove bits/cpp_type_traits.h include.
(_Iterator_state::__rbegin): New.
(_Iterator_state::__rmiddle): New.
(_Iterator_state::__rend): New.
(_Parameter::_Parameter(const _Safe_iterator<>&, const char*,
_Is_iterator)): Use _Safe_iterator<>::_S_constant. Grab normal underlying
iterator type.
(_Parameter::_Parameter(const _Safe_local_iterator<>&, const char*,
_Is_iterator)): Likewise.
(_Parameter::_S_reverse_state(_Iterator_state)): New.
        (_Parameter(__gnu_cxx::__normal_iterator<> const&, const char*,
_Is_iterator)): New.
(_Parameter(std::reverse_iterator<> const&, const char*,
_Is_iterator)): New.
(_Parameter(std::reverse_iterator<_Safe_iterator<>> const&,
const char*, _Is_iterator)): New.
(_Parameter(std::move_iterator<> const&, const char*, _Is_iterator):
New.
(_Parameter(std::move_iterator<_Safe_iterator<>> const&, const char*,
_Is_iterator)): New.
* testsuite/24_iterators/move_iterator/debug_neg.cc: New.
* testsuite/24_iterators/normal_iterator/debug_neg.cc: New.
* testsuite/24_iterators/reverse_iterator/debug_neg.cc: New.

From-SVN: r260093
libstdc++-v3/ChangeLog
libstdc++-v3/include/debug/formatter.h
libstdc++-v3/include/debug/safe_iterator.h
libstdc++-v3/include/debug/safe_local_iterator.h
libstdc++-v3/src/c++11/debug.cc
libstdc++-v3/testsuite/24_iterators/move_iterator/debug_neg.cc [new file with mode: 0644]
libstdc++-v3/testsuite/24_iterators/normal_iterator/debug_neg.cc [new file with mode: 0644]
libstdc++-v3/testsuite/24_iterators/reverse_iterator/debug_neg.cc [new file with mode: 0644]