1 // (C) Copyright John Maddock 2001.
2 // Use, modification and distribution are subject to the
3 // Boost Software License, Version 1.0. (See accompanying file
4 // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
6 // See http://www.boost.org/libs/config for the most recent version.
8 // MACRO: BOOST_NO_STD_ITERATOR
9 // TITLE: std::iterator
10 // DESCRIPTION: The C++ implementation fails to provide the
11 // std::iterator class.
16 namespace boost_no_std_iterator{
21 typedef std::iterator<
22 std::random_access_iterator_tag,
29 iterator_type::value_type v = 0;
30 iterator_type::difference_type d = 0;
31 iterator_type::pointer p = &v;
32 iterator_type::reference r = v;
33 iterator_type::iterator_category cat;
35 typedef std::iterator<
36 std::random_access_iterator_tag,
40 iterator_type_2::value_type v2 = 0;
41 iterator_type_2::difference_type d2 = 0;
42 iterator_type_2::pointer p2 = &v2;
43 iterator_type_2::reference r2 = v2;
44 iterator_type_2::iterator_category cat2;
46 // suppress some warnings: