iter_archetype_default_ctor.cpp 511 B

123456789101112131415161718192021
  1. //
  2. // Copyright Thomas Witt 2004.
  3. // Distributed under the Boost Software License, Version 1.0. (See
  4. // accompanying file LICENSE_1_0.txt or copy at
  5. // http://www.boost.org/LICENSE_1_0.txt)
  6. //
  7. #include <boost/iterator/iterator_archetypes.hpp>
  8. int main()
  9. {
  10. typedef boost::iterator_archetype<
  11. int
  12. , boost::iterator_archetypes::readable_iterator_t
  13. , boost::single_pass_traversal_tag
  14. > iter;
  15. // single_pass_traversal iterators are not required to be
  16. // default constructible
  17. iter it;
  18. }