forked from boostorg/range
Compare commits
57 Commits
boost-1.35
...
svn-branch
Author | SHA1 | Date | |
---|---|---|---|
b2d616d789 | |||
2321b5c2fe | |||
b4b13ae470 | |||
fbde78a968 | |||
c1aea25e44 | |||
b148e2fee6 | |||
8085605217 | |||
0eb365edbe | |||
2e0d7eab4a | |||
637dc618d1 | |||
dd1459f221 | |||
ba96d075b2 | |||
a2f3a45214 | |||
6ac0cfe09c | |||
7b3857a9a8 | |||
2605b9ee45 | |||
1509d5603b | |||
93deddde63 | |||
68a63cab85 | |||
06c54ccd48 | |||
2e298b5e60 | |||
00e70244a5 | |||
3f98d69c94 | |||
4767db522b | |||
f6e555dda3 | |||
01826978d6 | |||
336c12b60f | |||
82768af3d2 | |||
8984de1c74 | |||
4db083cd6d | |||
f4cde208f2 | |||
d130dff5ec | |||
aa9158b199 | |||
bbd9fdb7bd | |||
17514e1d44 | |||
d759c23552 | |||
cf9ad808a6 | |||
028bff0c22 | |||
33a8016af3 | |||
24466ae189 | |||
c8ffe55ae5 | |||
a862a573df | |||
0b0dfc0e06 | |||
e0a76af0f9 | |||
51650f1aa2 | |||
aeb47120e3 | |||
22b7b4ec8e | |||
a933622ae1 | |||
f49be0b382 | |||
007117cefb | |||
73bb3d899a | |||
4a8987865e | |||
f885495565 | |||
dc34cd6079 | |||
5850d7ce3e | |||
554f832234 | |||
dc96b440be |
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
4
doc/history_ack.html
Normal file → Executable file
4
doc/history_ack.html
Normal file → Executable file
@ -19,9 +19,9 @@
|
||||
<h2 >History and Acknowledgement</h2><a name="History" ></a>
|
||||
<p >
|
||||
The library was under way for a long time. Dietmar K<>hl originally intended
|
||||
to submit an <code>array_traits</code> class template which had most of
|
||||
to submit an <code >array_traits</code> class template which had most of
|
||||
the functionality present now, but only for arrays and standard containers.
|
||||
I believe this was back in 2001 or 2002.
|
||||
I believe this was back in 2001 or 2002.
|
||||
</p>
|
||||
|
||||
<p>
|
||||
|
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
4
include/boost/range/detail/implementation_help.hpp
Normal file → Executable file
4
include/boost/range/detail/implementation_help.hpp
Normal file → Executable file
@ -25,6 +25,8 @@ namespace boost
|
||||
{
|
||||
namespace range_detail
|
||||
{
|
||||
template <typename T>
|
||||
inline void boost_range_silence_warning( const T& ) { }
|
||||
|
||||
/////////////////////////////////////////////////////////////////////
|
||||
// end() help
|
||||
@ -82,12 +84,14 @@ namespace boost
|
||||
template< class T, std::size_t sz >
|
||||
inline std::size_t array_size( T BOOST_RANGE_ARRAY_REF()[sz] )
|
||||
{
|
||||
boost_range_silence_warning( boost_range_array );
|
||||
return sz;
|
||||
}
|
||||
|
||||
template< class T, std::size_t sz >
|
||||
inline std::size_t array_size( const T BOOST_RANGE_ARRAY_REF()[sz] )
|
||||
{
|
||||
boost_range_silence_warning( boost_range_array );
|
||||
return sz;
|
||||
}
|
||||
|
||||
|
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
18
include/boost/range/iterator_range.hpp
Normal file → Executable file
18
include/boost/range/iterator_range.hpp
Normal file → Executable file
@ -11,8 +11,15 @@
|
||||
#ifndef BOOST_RANGE_ITERATOR_RANGE_HPP
|
||||
#define BOOST_RANGE_ITERATOR_RANGE_HPP
|
||||
|
||||
// From boost/dynamic_bitset.hpp; thanks to Matthias Troyer for Cray X1 patch.
|
||||
#include <boost/config.hpp> // Define __STL_CONFIG_H, if appropriate.
|
||||
#include <boost/detail/workaround.hpp>
|
||||
|
||||
#if BOOST_WORKAROUND(BOOST_MSVC, BOOST_TESTED_AT(1500))
|
||||
#pragma warning( push )
|
||||
#pragma warning( disable : 4996 )
|
||||
#endif
|
||||
|
||||
// From boost/dynamic_bitset.hpp; thanks to Matthias Troyer for Cray X1 patch.
|
||||
#ifndef BOOST_OLD_IOSTREAMS
|
||||
# if defined(__STL_CONFIG_H) && \
|
||||
!defined (__STL_USE_NEW_IOSTREAMS) && !defined(__crayx1) \
|
||||
@ -21,7 +28,6 @@
|
||||
# endif
|
||||
#endif // #ifndef BOOST_OLD_IOSTREAMS
|
||||
|
||||
#include <boost/detail/workaround.hpp>
|
||||
#include <boost/range/functions.hpp>
|
||||
#include <boost/range/iterator.hpp>
|
||||
#include <boost/range/difference_type.hpp>
|
||||
@ -38,10 +44,6 @@
|
||||
#endif // _STLP_NO_IOSTREAMS
|
||||
#include <cstddef>
|
||||
|
||||
#if BOOST_WORKAROUND(BOOST_MSVC, == 1310) || BOOST_WORKAROUND(BOOST_MSVC, == 1400)
|
||||
#pragma warning( disable : 4996 )
|
||||
#endif
|
||||
|
||||
/*! \file
|
||||
Defines the \c iterator_class and related functions.
|
||||
\c iterator_range is a simple wrapper of iterator pair idiom. It provides
|
||||
@ -639,5 +641,9 @@ namespace boost
|
||||
|
||||
#undef BOOST_OLD_IOSTREAMS
|
||||
|
||||
#if BOOST_WORKAROUND(BOOST_MSVC, BOOST_TESTED_AT(1500))
|
||||
#pragma warning( pop )
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
|
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
12
include/boost/range/sub_range.hpp
Normal file → Executable file
12
include/boost/range/sub_range.hpp
Normal file → Executable file
@ -11,12 +11,12 @@
|
||||
#ifndef BOOST_RANGE_SUB_RANGE_HPP
|
||||
#define BOOST_RANGE_SUB_RANGE_HPP
|
||||
|
||||
#include <boost/detail/workaround.hpp>
|
||||
|
||||
#if BOOST_WORKAROUND(BOOST_MSVC, == 1310) || BOOST_WORKAROUND(BOOST_MSVC, == 1400)
|
||||
#if BOOST_WORKAROUND(BOOST_MSVC, BOOST_TESTED_AT(1500))
|
||||
#pragma warning( push )
|
||||
#pragma warning( disable : 4996 )
|
||||
#endif
|
||||
|
||||
#include <boost/detail/workaround.hpp>
|
||||
#include <boost/range/config.hpp>
|
||||
#include <boost/range/iterator_range.hpp>
|
||||
#include <boost/range/value_type.hpp>
|
||||
@ -46,7 +46,7 @@ namespace boost
|
||||
sub_range() : base()
|
||||
{ }
|
||||
|
||||
#if BOOST_WORKAROUND(BOOST_MSVC, == 1310) || BOOST_WORKAROUND(BOOST_MSVC, == 1400)
|
||||
#if BOOST_WORKAROUND(BOOST_MSVC, BOOST_TESTED_AT(1500) )
|
||||
sub_range( const sub_range& r )
|
||||
: base( static_cast<const base&>( r ) )
|
||||
{ }
|
||||
@ -163,5 +163,9 @@ namespace boost
|
||||
|
||||
} // namespace 'boost'
|
||||
|
||||
#if BOOST_WORKAROUND(BOOST_MSVC, BOOST_TESTED_AT(1500))
|
||||
#pragma warning( pop )
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
|
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
8
test/partial_workaround.cpp
Normal file → Executable file
8
test/partial_workaround.cpp
Normal file → Executable file
@ -10,6 +10,8 @@
|
||||
|
||||
#include <boost/config.hpp>
|
||||
#include <boost/detail/workaround.hpp>
|
||||
#include <boost/range/detail/implementation_help.hpp>
|
||||
#include <boost/test/test_tools.hpp>
|
||||
|
||||
#if BOOST_WORKAROUND(__BORLANDC__, BOOST_TESTED_AT(0x564))
|
||||
# pragma warn -8091 // supress warning in Boost.Test
|
||||
@ -30,7 +32,6 @@
|
||||
|
||||
#include <boost/static_assert.hpp>
|
||||
#include <boost/type_traits.hpp>
|
||||
#include <boost/test/test_tools.hpp>
|
||||
#include <iostream>
|
||||
#include <vector>
|
||||
|
||||
@ -91,6 +92,11 @@ void check_partial_workaround()
|
||||
|
||||
void check_partial_workaround()
|
||||
{
|
||||
//
|
||||
// test if warnings are generated
|
||||
//
|
||||
std::size_t s = boost::range_detail::array_size( "foo" );
|
||||
BOOST_CHECK_EQUAL( s, 4u );
|
||||
}
|
||||
|
||||
#endif
|
||||
|
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