mirror of
https://github.com/boostorg/range.git
synced 2025-07-02 07:21:04 +02:00
Compare commits
6 Commits
svn-branch
...
svn-branch
Author | SHA1 | Date | |
---|---|---|---|
b2d616d789 | |||
2321b5c2fe | |||
b4b13ae470 | |||
fbde78a968 | |||
c1aea25e44 | |||
b148e2fee6 |
0
doc/examples.html
Normal file → Executable file
0
doc/examples.html
Normal file → Executable file
0
doc/faq.html
Normal file → Executable file
0
doc/faq.html
Normal file → Executable file
0
doc/headers.html
Normal file → Executable file
0
doc/headers.html
Normal file → Executable file
0
doc/history_ack.html
Normal file → Executable file
0
doc/history_ack.html
Normal file → Executable file
0
doc/intro.html
Normal file → Executable file
0
doc/intro.html
Normal file → Executable file
0
doc/portability.html
Normal file → Executable file
0
doc/portability.html
Normal file → Executable file
0
doc/range.html
Normal file → Executable file
0
doc/range.html
Normal file → Executable file
0
doc/style.css
Normal file → Executable file
0
doc/style.css
Normal file → Executable file
0
doc/style.html
Normal file → Executable file
0
doc/style.html
Normal file → Executable file
0
include/boost/range.hpp
Normal file → Executable file
0
include/boost/range.hpp
Normal file → Executable file
0
include/boost/range/as_array.hpp
Normal file → Executable file
0
include/boost/range/as_array.hpp
Normal file → Executable file
0
include/boost/range/as_literal.hpp
Normal file → Executable file
0
include/boost/range/as_literal.hpp
Normal file → Executable file
0
include/boost/range/begin.hpp
Normal file → Executable file
0
include/boost/range/begin.hpp
Normal file → Executable file
0
include/boost/range/category.hpp
Normal file → Executable file
0
include/boost/range/category.hpp
Normal file → Executable file
0
include/boost/range/concepts.hpp
Normal file → Executable file
0
include/boost/range/concepts.hpp
Normal file → Executable file
0
include/boost/range/config.hpp
Normal file → Executable file
0
include/boost/range/config.hpp
Normal file → Executable file
0
include/boost/range/const_iterator.hpp
Normal file → Executable file
0
include/boost/range/const_iterator.hpp
Normal file → Executable file
0
include/boost/range/const_reverse_iterator.hpp
Normal file → Executable file
0
include/boost/range/const_reverse_iterator.hpp
Normal file → Executable file
0
include/boost/range/detail/as_literal.hpp
Normal file → Executable file
0
include/boost/range/detail/as_literal.hpp
Normal file → Executable file
0
include/boost/range/detail/begin.hpp
Normal file → Executable file
0
include/boost/range/detail/begin.hpp
Normal file → Executable file
0
include/boost/range/detail/collection_traits.hpp
Normal file → Executable file
0
include/boost/range/detail/collection_traits.hpp
Normal file → Executable file
0
include/boost/range/detail/collection_traits_detail.hpp
Normal file → Executable file
0
include/boost/range/detail/collection_traits_detail.hpp
Normal file → Executable file
0
include/boost/range/detail/common.hpp
Normal file → Executable file
0
include/boost/range/detail/common.hpp
Normal file → Executable file
0
include/boost/range/detail/const_iterator.hpp
Normal file → Executable file
0
include/boost/range/detail/const_iterator.hpp
Normal file → Executable file
0
include/boost/range/detail/detail_str.hpp
Normal file → Executable file
0
include/boost/range/detail/detail_str.hpp
Normal file → Executable file
0
include/boost/range/detail/difference_type.hpp
Normal file → Executable file
0
include/boost/range/detail/difference_type.hpp
Normal file → Executable file
0
include/boost/range/detail/empty.hpp
Normal file → Executable file
0
include/boost/range/detail/empty.hpp
Normal file → Executable file
0
include/boost/range/detail/end.hpp
Normal file → Executable file
0
include/boost/range/detail/end.hpp
Normal file → Executable file
0
include/boost/range/detail/implementation_help.hpp
Normal file → Executable file
0
include/boost/range/detail/implementation_help.hpp
Normal file → Executable file
0
include/boost/range/detail/iterator.hpp
Normal file → Executable file
0
include/boost/range/detail/iterator.hpp
Normal file → Executable file
0
include/boost/range/detail/remove_extent.hpp
Normal file → Executable file
0
include/boost/range/detail/remove_extent.hpp
Normal file → Executable file
0
include/boost/range/detail/sfinae.hpp
Normal file → Executable file
0
include/boost/range/detail/sfinae.hpp
Normal file → Executable file
0
include/boost/range/detail/size.hpp
Normal file → Executable file
0
include/boost/range/detail/size.hpp
Normal file → Executable file
0
include/boost/range/detail/size_type.hpp
Normal file → Executable file
0
include/boost/range/detail/size_type.hpp
Normal file → Executable file
0
include/boost/range/detail/sizer.hpp
Normal file → Executable file
0
include/boost/range/detail/sizer.hpp
Normal file → Executable file
0
include/boost/range/detail/str_types.hpp
Normal file → Executable file
0
include/boost/range/detail/str_types.hpp
Normal file → Executable file
0
include/boost/range/detail/value_type.hpp
Normal file → Executable file
0
include/boost/range/detail/value_type.hpp
Normal file → Executable file
0
include/boost/range/detail/vc6/end.hpp
Normal file → Executable file
0
include/boost/range/detail/vc6/end.hpp
Normal file → Executable file
0
include/boost/range/detail/vc6/size.hpp
Normal file → Executable file
0
include/boost/range/detail/vc6/size.hpp
Normal file → Executable file
0
include/boost/range/difference_type.hpp
Normal file → Executable file
0
include/boost/range/difference_type.hpp
Normal file → Executable file
0
include/boost/range/distance.hpp
Normal file → Executable file
0
include/boost/range/distance.hpp
Normal file → Executable file
0
include/boost/range/empty.hpp
Normal file → Executable file
0
include/boost/range/empty.hpp
Normal file → Executable file
0
include/boost/range/end.hpp
Normal file → Executable file
0
include/boost/range/end.hpp
Normal file → Executable file
0
include/boost/range/functions.hpp
Normal file → Executable file
0
include/boost/range/functions.hpp
Normal file → Executable file
0
include/boost/range/iterator.hpp
Normal file → Executable file
0
include/boost/range/iterator.hpp
Normal file → Executable file
16
include/boost/range/iterator_range.hpp
Normal file → Executable file
16
include/boost/range/iterator_range.hpp
Normal file → Executable file
@ -28,13 +28,11 @@
|
||||
# endif
|
||||
#endif // #ifndef BOOST_OLD_IOSTREAMS
|
||||
|
||||
#include <boost/assert.hpp>
|
||||
#include <boost/iterator/iterator_traits.hpp>
|
||||
#include <boost/type_traits/is_abstract.hpp>
|
||||
#include <boost/range/functions.hpp>
|
||||
#include <boost/range/iterator.hpp>
|
||||
#include <boost/range/difference_type.hpp>
|
||||
#include <boost/utility/enable_if.hpp>
|
||||
#include <boost/iterator/iterator_traits.hpp>
|
||||
#include <boost/assert.hpp>
|
||||
#include <iterator>
|
||||
#include <algorithm>
|
||||
#ifndef _STLP_NO_IOSTREAMS
|
||||
@ -167,12 +165,6 @@ namespace boost
|
||||
//! iterator type
|
||||
typedef IteratorT iterator;
|
||||
|
||||
private: // for return value of operator()()
|
||||
typedef BOOST_DEDUCED_TYPENAME
|
||||
boost::mpl::if_< boost::is_abstract<value_type>,
|
||||
reference, value_type >::type abstract_value_type;
|
||||
|
||||
public:
|
||||
iterator_range() : m_Begin( iterator() ), m_End( iterator() )
|
||||
#ifndef NDEBUG
|
||||
, singular( true )
|
||||
@ -360,8 +352,8 @@ namespace boost
|
||||
// When storing transform iterators, operator[]()
|
||||
// fails because it returns by reference. Therefore
|
||||
// operator()() is provided for these cases.
|
||||
//
|
||||
abstract_value_type operator()( difference_type at ) const
|
||||
//
|
||||
value_type operator()( difference_type at ) const
|
||||
{
|
||||
BOOST_ASSERT( at >= 0 && at < size() );
|
||||
return m_Begin[at];
|
||||
|
0
include/boost/range/metafunctions.hpp
Normal file → Executable file
0
include/boost/range/metafunctions.hpp
Normal file → Executable file
0
include/boost/range/mutable_iterator.hpp
Normal file → Executable file
0
include/boost/range/mutable_iterator.hpp
Normal file → Executable file
0
include/boost/range/pointer.hpp
Normal file → Executable file
0
include/boost/range/pointer.hpp
Normal file → Executable file
0
include/boost/range/rbegin.hpp
Normal file → Executable file
0
include/boost/range/rbegin.hpp
Normal file → Executable file
0
include/boost/range/reference.hpp
Normal file → Executable file
0
include/boost/range/reference.hpp
Normal file → Executable file
0
include/boost/range/rend.hpp
Normal file → Executable file
0
include/boost/range/rend.hpp
Normal file → Executable file
0
include/boost/range/result_iterator.hpp
Normal file → Executable file
0
include/boost/range/result_iterator.hpp
Normal file → Executable file
0
include/boost/range/reverse_iterator.hpp
Normal file → Executable file
0
include/boost/range/reverse_iterator.hpp
Normal file → Executable file
0
include/boost/range/reverse_result_iterator.hpp
Normal file → Executable file
0
include/boost/range/reverse_result_iterator.hpp
Normal file → Executable file
0
include/boost/range/size.hpp
Normal file → Executable file
0
include/boost/range/size.hpp
Normal file → Executable file
0
include/boost/range/size_type.hpp
Normal file → Executable file
0
include/boost/range/size_type.hpp
Normal file → Executable file
0
include/boost/range/sub_range.hpp
Normal file → Executable file
0
include/boost/range/sub_range.hpp
Normal file → Executable file
0
include/boost/range/value_type.hpp
Normal file → Executable file
0
include/boost/range/value_type.hpp
Normal file → Executable file
0
index.html
Normal file → Executable file
0
index.html
Normal file → Executable file
0
test/adl_conformance.cpp
Normal file → Executable file
0
test/adl_conformance.cpp
Normal file → Executable file
0
test/adl_conformance_no_using.cpp
Normal file → Executable file
0
test/adl_conformance_no_using.cpp
Normal file → Executable file
0
test/algorithm_example.cpp
Normal file → Executable file
0
test/algorithm_example.cpp
Normal file → Executable file
0
test/array.cpp
Normal file → Executable file
0
test/array.cpp
Normal file → Executable file
0
test/compat2.cpp
Normal file → Executable file
0
test/compat2.cpp
Normal file → Executable file
0
test/compat3.cpp
Normal file → Executable file
0
test/compat3.cpp
Normal file → Executable file
0
test/const_ranges.cpp
Normal file → Executable file
0
test/const_ranges.cpp
Normal file → Executable file
0
test/extension_mechanism.cpp
Normal file → Executable file
0
test/extension_mechanism.cpp
Normal file → Executable file
0
test/iterator_pair.cpp
Normal file → Executable file
0
test/iterator_pair.cpp
Normal file → Executable file
0
test/iterator_range.cpp
Normal file → Executable file
0
test/iterator_range.cpp
Normal file → Executable file
0
test/mfc.cpp
Normal file → Executable file
0
test/mfc.cpp
Normal file → Executable file
0
test/partial_workaround.cpp
Normal file → Executable file
0
test/partial_workaround.cpp
Normal file → Executable file
0
test/reversible_range.cpp
Normal file → Executable file
0
test/reversible_range.cpp
Normal file → Executable file
0
test/std_container.cpp
Normal file → Executable file
0
test/std_container.cpp
Normal file → Executable file
0
test/string.cpp
Normal file → Executable file
0
test/string.cpp
Normal file → Executable file
0
test/sub_range.cpp
Normal file → Executable file
0
test/sub_range.cpp
Normal file → Executable file
Reference in New Issue
Block a user