mirror of
https://github.com/boostorg/range.git
synced 2026-02-04 22:25:08 +01:00
Compare commits
2 Commits
boost-1.48
...
boost-1.51
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
125c04d8fa | ||
|
|
dc46fc13ab |
@@ -41,7 +41,7 @@ BOOST_FOREACH (CList<CString> *theList, myArray)
|
||||
|
||||
* Boost C++ Libraries Version 1.34.0 or later (no compilation required)
|
||||
* Visual C++ 7.1 or later (for MFC and ATL)
|
||||
|
||||
|
||||
[endsect]
|
||||
|
||||
[section:mfc_ranges MFC Ranges]
|
||||
|
||||
@@ -19,7 +19,7 @@ For maximum portability you should follow these guidelines:
|
||||
# use __const_begin__`()` and __const_end__`()` whenever your code by intention is read-only; this will also solve most rvalue problems,
|
||||
# do not rely on ADL:
|
||||
* if you overload functions, include that header before the headers in this library,
|
||||
* put all overloads in namespace boost.
|
||||
* put all overloads in namespace boost.
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -128,7 +128,7 @@
|
||||
]
|
||||
[
|
||||
[`size(x)`]
|
||||
[`range_difference<X>::type`]
|
||||
[`range_size<X>::type`]
|
||||
[`range_calculate_size(x)` which by default is `boost::end(x) - boost::begin(x)`. Users may supply alternative implementations by implementing `range_calculate_size(x)` so that it will be found via ADL]
|
||||
[constant time]
|
||||
]
|
||||
|
||||
@@ -20,10 +20,10 @@ namespace boost
|
||||
|
||||
template< class T >
|
||||
struct range_reference;
|
||||
|
||||
|
||||
template< class T >
|
||||
struct range_pointer;
|
||||
|
||||
|
||||
template< class T >
|
||||
struct range_category;
|
||||
|
||||
@@ -92,11 +92,11 @@ namespace boost
|
||||
template< class T >
|
||||
typename range_reverse_iterator<const T>::type
|
||||
rend( const T& r );
|
||||
|
||||
|
||||
//
|
||||
// Random Access Range functions
|
||||
//
|
||||
|
||||
|
||||
template< class T >
|
||||
typename range_difference<T>::type
|
||||
size( const T& r );
|
||||
@@ -106,42 +106,42 @@ namespace boost
|
||||
//
|
||||
|
||||
template< class T >
|
||||
typename range_iterator<const T>::type
|
||||
typename range_iterator<const T>::type
|
||||
const_begin( const T& r );
|
||||
|
||||
template< class T >
|
||||
typename range_iterator<const T>::type
|
||||
typename range_iterator<const T>::type
|
||||
const_end( const T& r );
|
||||
|
||||
template< class T >
|
||||
typename range_reverse_iterator<const T>::type
|
||||
typename range_reverse_iterator<const T>::type
|
||||
const_rbegin( const T& r );
|
||||
|
||||
template< class T >
|
||||
typename range_reverse_iterator<const T>::type
|
||||
typename range_reverse_iterator<const T>::type
|
||||
const_rend( const T& r );
|
||||
|
||||
|
||||
//
|
||||
// String utilities
|
||||
//
|
||||
|
||||
|
||||
template< class T >
|
||||
iterator_range< ... see below ... >
|
||||
as_literal( T& r );
|
||||
|
||||
|
||||
template< class T >
|
||||
iterator_range< ... see below ... >
|
||||
as_literal( const T& r );
|
||||
|
||||
|
||||
template< class T >
|
||||
iterator_range< typename range_iterator<T>::type >
|
||||
as_array( T& r );
|
||||
|
||||
|
||||
template< class T >
|
||||
iterator_range< typename range_iterator<const T>::type >
|
||||
as_array( const T& r );
|
||||
|
||||
} // namespace 'boost'
|
||||
} // namespace 'boost'
|
||||
``
|
||||
|
||||
[endsect]
|
||||
|
||||
@@ -40,23 +40,23 @@ namespace boost
|
||||
public: // construction, assignment
|
||||
template< class ForwardTraversalIterator2 >
|
||||
iterator_range( ForwardTraversalIterator2 Begin, ForwardTraversalIterator2 End );
|
||||
|
||||
|
||||
template< class ForwardRange >
|
||||
iterator_range( ForwardRange& r );
|
||||
|
||||
|
||||
template< class ForwardRange >
|
||||
iterator_range( const ForwardRange& r );
|
||||
|
||||
|
||||
template< class ForwardRange >
|
||||
iterator_range& operator=( ForwardRange& r );
|
||||
|
||||
template< class ForwardRange >
|
||||
iterator_range& operator=( const ForwardRange& r );
|
||||
|
||||
|
||||
public: // Forward Range functions
|
||||
iterator begin() const;
|
||||
iterator end() const;
|
||||
|
||||
|
||||
public: // convenience
|
||||
operator unspecified_bool_type() const;
|
||||
bool equal( const iterator_range& ) const;
|
||||
@@ -65,25 +65,25 @@ namespace boost
|
||||
iterator_range& advance_begin(difference_type n);
|
||||
iterator_range& advance_end(difference_type n);
|
||||
bool empty() const;
|
||||
// for Random Access Range only:
|
||||
// for Random Access Range only:
|
||||
reference operator[]( difference_type at ) const;
|
||||
value_type operator()( difference_type at ) const;
|
||||
size_type size() const;
|
||||
};
|
||||
|
||||
|
||||
// stream output
|
||||
template< class ForwardTraversalIterator, class T, class Traits >
|
||||
std::basic_ostream<T,Traits>&
|
||||
std::basic_ostream<T,Traits>&
|
||||
operator<<( std::basic_ostream<T,Traits>& Os,
|
||||
const iterator_range<ForwardTraversalIterator>& r );
|
||||
|
||||
// comparison
|
||||
template< class ForwardTraversalIterator, class ForwardTraversalIterator2 >
|
||||
bool operator==( const iterator_range<ForwardTraversalIterator>& l,
|
||||
bool operator==( const iterator_range<ForwardTraversalIterator>& l,
|
||||
const iterator_range<ForwardTraversalIterator2>& r );
|
||||
|
||||
template< class ForwardTraversalIterator, class ForwardRange >
|
||||
bool operator==( const iterator_range<ForwardTraversalIterator>& l,
|
||||
bool operator==( const iterator_range<ForwardTraversalIterator>& l,
|
||||
const ForwardRange& r );
|
||||
|
||||
template< class ForwardTraversalIterator, class ForwardRange >
|
||||
@@ -91,11 +91,11 @@ namespace boost
|
||||
const iterator_range<ForwardTraversalIterator>& r );
|
||||
|
||||
template< class ForwardTraversalIterator, class ForwardTraversalIterator2 >
|
||||
bool operator!=( const iterator_range<ForwardTraversalIterator>& l,
|
||||
bool operator!=( const iterator_range<ForwardTraversalIterator>& l,
|
||||
const iterator_range<ForwardTraversalIterator2>& r );
|
||||
|
||||
template< class ForwardTraversalIterator, class ForwardRange >
|
||||
bool operator!=( const iterator_range<ForwardTraversalIterator>& l,
|
||||
bool operator!=( const iterator_range<ForwardTraversalIterator>& l,
|
||||
const ForwardRange& r );
|
||||
|
||||
template< class ForwardTraversalIterator, class ForwardRange >
|
||||
@@ -103,23 +103,23 @@ namespace boost
|
||||
const iterator_range<ForwardTraversalIterator>& r );
|
||||
|
||||
template< class ForwardTraversalIterator, class ForwardTraversalIterator2 >
|
||||
bool operator<( const iterator_range<ForwardTraversalIterator>& l,
|
||||
bool operator<( const iterator_range<ForwardTraversalIterator>& l,
|
||||
const iterator_range<ForwardTraversalIterator2>& r );
|
||||
|
||||
template< class ForwardTraversalIterator, class ForwardRange >
|
||||
bool operator<( const iterator_range<ForwardTraversalIterator>& l,
|
||||
bool operator<( const iterator_range<ForwardTraversalIterator>& l,
|
||||
const ForwardRange& r );
|
||||
|
||||
template< class ForwardTraversalIterator, class ForwardRange >
|
||||
bool operator<( const ForwardRange& l,
|
||||
const iterator_range<ForwardTraversalIterator>& r );
|
||||
|
||||
|
||||
// external construction
|
||||
template< class ForwardTraversalIterator >
|
||||
iterator_range< ForwardTraversalIterator >
|
||||
make_iterator_range( ForwardTraversalIterator Begin,
|
||||
make_iterator_range( ForwardTraversalIterator Begin,
|
||||
ForwardTraversalIterator End );
|
||||
|
||||
|
||||
template< class ForwardRange >
|
||||
iterator_range< typename range_iterator<ForwardRange>::type >
|
||||
make_iterator_range( ForwardRange& r );
|
||||
@@ -127,25 +127,25 @@ namespace boost
|
||||
template< class ForwardRange >
|
||||
iterator_range< typename range_iterator<const ForwardRange>::type >
|
||||
make_iterator_range( const ForwardRange& r );
|
||||
|
||||
|
||||
template< class Range >
|
||||
iterator_range< typename range_iterator<Range>::type >
|
||||
make_iterator_range( Range& r,
|
||||
typename range_difference<Range>::type advance_begin,
|
||||
typename range_difference<Range>::type advance_end );
|
||||
|
||||
|
||||
template< class Range >
|
||||
iterator_range< typename range_iterator<const Range>::type >
|
||||
make_iterator_range( const Range& r,
|
||||
make_iterator_range( const Range& r,
|
||||
typename range_difference<const Range>::type advance_begin,
|
||||
typename range_difference<const Range>::type advance_end );
|
||||
|
||||
|
||||
// convenience
|
||||
template< class Sequence, class ForwardRange >
|
||||
Sequence copy_range( const ForwardRange& r );
|
||||
|
||||
|
||||
} // namespace 'boost'
|
||||
``
|
||||
``
|
||||
|
||||
If an instance of `iterator_range` is constructed by a client with two iterators, the client must ensure that the two iterators delimit a valid closed-open range [begin,end).
|
||||
|
||||
@@ -177,7 +177,7 @@ It is worth noticing that the templated constructors and assignment operators al
|
||||
|
||||
``
|
||||
iterator_range make_iterator_range( Range& r,
|
||||
typename range_difference<Range>::type advance_begin,
|
||||
typename range_difference<Range>::type advance_begin,
|
||||
typename range_difference<Range>::type advance_end );
|
||||
``
|
||||
|
||||
@@ -209,46 +209,46 @@ namespace boost
|
||||
template< class ForwardRange >
|
||||
class sub_range : public iterator_range< typename range_iterator<ForwardRange>::type >
|
||||
{
|
||||
public:
|
||||
public:
|
||||
typedef typename range_iterator<ForwardRange>::type iterator;
|
||||
typedef typename range_iterator<const ForwardRange>::type const_iterator;
|
||||
typedef typename iterator_difference<iterator>::type difference_type;
|
||||
|
||||
|
||||
public: // construction, assignment
|
||||
template< class ForwardTraversalIterator >
|
||||
sub_range( ForwardTraversalIterator Begin, ForwardTraversalIterator End );
|
||||
|
||||
template< class ForwardRange2 >
|
||||
sub_range( ForwardRange2& r );
|
||||
|
||||
|
||||
template< class ForwardRange2 >
|
||||
sub_range( const Range2& r );
|
||||
|
||||
|
||||
template< class ForwardRange2 >
|
||||
sub_range& operator=( ForwardRange2& r );
|
||||
|
||||
template< class ForwardRange2 >
|
||||
sub_range& operator=( const ForwardRange2& r );
|
||||
|
||||
public: // Forward Range functions
|
||||
sub_range& operator=( const ForwardRange2& r );
|
||||
|
||||
public: // Forward Range functions
|
||||
iterator begin();
|
||||
const_iterator begin() const;
|
||||
iterator end();
|
||||
const_iterator end() const;
|
||||
|
||||
public: // convenience
|
||||
const_iterator end() const;
|
||||
|
||||
public: // convenience
|
||||
value_type& front();
|
||||
const value_type& front() const;
|
||||
value_type& back();
|
||||
const value_type& back() const;
|
||||
// for Random Access Range only:
|
||||
// for Random Access Range only:
|
||||
value_type& operator[]( size_type at );
|
||||
const value_type& operator[]( size_type at ) const;
|
||||
|
||||
|
||||
public:
|
||||
// rest of interface inherited from iterator_range
|
||||
};
|
||||
|
||||
|
||||
} // namespace 'boost'
|
||||
``
|
||||
|
||||
|
||||
@@ -13,7 +13,7 @@ Since ranges are characterized by a specific underlying iterator type, we get a
|
||||
* Readable Range
|
||||
* Writeable Range
|
||||
* Swappable Range
|
||||
* Lvalue Range
|
||||
* Lvalue Range
|
||||
* [*/Traversal/] category:
|
||||
* __single_pass_range__
|
||||
* __forward_range__
|
||||
@@ -25,7 +25,7 @@ Notice how we have used the categories from the __new_style_iterators__.
|
||||
Notice that an iterator (and therefore an range) has one [*/traversal/] property and one or more properties from the [*/value access/] category. So in reality we will mostly talk about mixtures such as
|
||||
|
||||
* Random Access Readable Writeable Range
|
||||
* Forward Lvalue Range
|
||||
* Forward Lvalue Range
|
||||
|
||||
By convention, we should always specify the [*/traversal/] property first as done above. This seems reasonable since there will only be one [*/traversal/] property, but perhaps many [*/value access/] properties.
|
||||
|
||||
@@ -37,7 +37,7 @@ As another example, consider how we specify the interface of `std::sort()`. Algo
|
||||
template< class RandomAccessTraversalReadableWritableIterator >
|
||||
void sort( RandomAccessTraversalReadableWritableIterator first,
|
||||
RandomAccessTraversalReadableWritableIterator last );
|
||||
``
|
||||
``
|
||||
|
||||
For ranges the interface becomes
|
||||
|
||||
@@ -45,6 +45,6 @@ For ranges the interface becomes
|
||||
template< class RandomAccessReadableWritableRange >
|
||||
void sort( RandomAccessReadableWritableRange& r );
|
||||
``
|
||||
|
||||
|
||||
[endsect]
|
||||
|
||||
|
||||
@@ -5,6 +5,12 @@
|
||||
/]
|
||||
[section:upgrade Upgrade version of Boost.Range]
|
||||
|
||||
[section:upgrade_from_1_49 Upgrade from version 1.49]
|
||||
|
||||
# __size__ now returns the type Rng::size_type if the range has size_type;
|
||||
otherwise range_size<Rng>::type is used. This is the distance type promoted to
|
||||
an unsigned type.
|
||||
|
||||
[section:upgrade_from_1_45 Upgrade from version 1.45]
|
||||
|
||||
# __size__ in addition to supporting __random_access_range__ now also supports extensibility via calls to the unqualified `range_calculate_size(rng)` function.
|
||||
|
||||
0
include/boost/range.hpp
Executable file → Normal file
0
include/boost/range.hpp
Executable file → Normal file
0
include/boost/range/adaptor/argument_fwd.hpp
Executable file → Normal file
0
include/boost/range/adaptor/argument_fwd.hpp
Executable file → Normal file
0
include/boost/range/adaptor/copied.hpp
Executable file → Normal file
0
include/boost/range/adaptor/copied.hpp
Executable file → Normal file
0
include/boost/range/adaptor/filtered.hpp
Executable file → Normal file
0
include/boost/range/adaptor/filtered.hpp
Executable file → Normal file
0
include/boost/range/adaptor/indexed.hpp
Executable file → Normal file
0
include/boost/range/adaptor/indexed.hpp
Executable file → Normal file
0
include/boost/range/adaptor/map.hpp
Executable file → Normal file
0
include/boost/range/adaptor/map.hpp
Executable file → Normal file
0
include/boost/range/adaptor/reversed.hpp
Executable file → Normal file
0
include/boost/range/adaptor/reversed.hpp
Executable file → Normal file
0
include/boost/range/adaptor/sliced.hpp
Executable file → Normal file
0
include/boost/range/adaptor/sliced.hpp
Executable file → Normal file
0
include/boost/range/adaptor/tokenized.hpp
Executable file → Normal file
0
include/boost/range/adaptor/tokenized.hpp
Executable file → Normal file
0
include/boost/range/adaptor/uniqued.hpp
Executable file → Normal file
0
include/boost/range/adaptor/uniqued.hpp
Executable file → Normal file
0
include/boost/range/adaptors.hpp
Executable file → Normal file
0
include/boost/range/adaptors.hpp
Executable file → Normal file
0
include/boost/range/algorithm.hpp
Executable file → Normal file
0
include/boost/range/algorithm.hpp
Executable file → Normal file
0
include/boost/range/algorithm/adjacent_find.hpp
Executable file → Normal file
0
include/boost/range/algorithm/adjacent_find.hpp
Executable file → Normal file
0
include/boost/range/algorithm/binary_search.hpp
Executable file → Normal file
0
include/boost/range/algorithm/binary_search.hpp
Executable file → Normal file
0
include/boost/range/algorithm/copy_backward.hpp
Executable file → Normal file
0
include/boost/range/algorithm/copy_backward.hpp
Executable file → Normal file
0
include/boost/range/algorithm/count.hpp
Executable file → Normal file
0
include/boost/range/algorithm/count.hpp
Executable file → Normal file
0
include/boost/range/algorithm/count_if.hpp
Executable file → Normal file
0
include/boost/range/algorithm/count_if.hpp
Executable file → Normal file
20
include/boost/range/algorithm/equal.hpp
Executable file → Normal file
20
include/boost/range/algorithm/equal.hpp
Executable file → Normal file
@@ -31,7 +31,7 @@ namespace boost
|
||||
IteratorCategoryTag1,
|
||||
IteratorCategoryTag2 )
|
||||
{
|
||||
do
|
||||
while (true)
|
||||
{
|
||||
// If we have reached the end of the left range then this is
|
||||
// the end of the loop. They are equal if and only if we have
|
||||
@@ -46,7 +46,12 @@ namespace boost
|
||||
return false;
|
||||
|
||||
// continue looping if and only if the values are equal
|
||||
} while(*first1++ == *first2++);
|
||||
if (*first1 != *first2)
|
||||
break;
|
||||
|
||||
++first1;
|
||||
++first2;
|
||||
}
|
||||
|
||||
// Reaching this line in the algorithm indicates that a value
|
||||
// inequality has been detected.
|
||||
@@ -66,7 +71,7 @@ namespace boost
|
||||
IteratorCategoryTag1,
|
||||
IteratorCategoryTag2 )
|
||||
{
|
||||
do
|
||||
while (true)
|
||||
{
|
||||
// If we have reached the end of the left range then this is
|
||||
// the end of the loop. They are equal if and only if we have
|
||||
@@ -81,7 +86,12 @@ namespace boost
|
||||
return false;
|
||||
|
||||
// continue looping if and only if the values are equal
|
||||
} while(pred(*first1++, *first2++));
|
||||
if (!pred(*first1, *first2))
|
||||
break;
|
||||
|
||||
++first1;
|
||||
++first2;
|
||||
}
|
||||
|
||||
// Reaching this line in the algorithm indicates that a value
|
||||
// inequality has been detected.
|
||||
@@ -182,7 +192,7 @@ namespace boost
|
||||
}
|
||||
|
||||
} // namespace range
|
||||
using range::equal;
|
||||
using ::boost::range::equal;
|
||||
} // namespace boost
|
||||
|
||||
#endif // include guard
|
||||
|
||||
0
include/boost/range/algorithm/equal_range.hpp
Executable file → Normal file
0
include/boost/range/algorithm/equal_range.hpp
Executable file → Normal file
0
include/boost/range/algorithm/fill.hpp
Executable file → Normal file
0
include/boost/range/algorithm/fill.hpp
Executable file → Normal file
0
include/boost/range/algorithm/fill_n.hpp
Executable file → Normal file
0
include/boost/range/algorithm/fill_n.hpp
Executable file → Normal file
0
include/boost/range/algorithm/find.hpp
Executable file → Normal file
0
include/boost/range/algorithm/find.hpp
Executable file → Normal file
0
include/boost/range/algorithm/find_end.hpp
Executable file → Normal file
0
include/boost/range/algorithm/find_end.hpp
Executable file → Normal file
0
include/boost/range/algorithm/find_first_of.hpp
Executable file → Normal file
0
include/boost/range/algorithm/find_first_of.hpp
Executable file → Normal file
0
include/boost/range/algorithm/find_if.hpp
Executable file → Normal file
0
include/boost/range/algorithm/find_if.hpp
Executable file → Normal file
@@ -14,7 +14,6 @@
|
||||
#include <boost/range/end.hpp>
|
||||
#include <boost/range/concepts.hpp>
|
||||
#include <boost/ref.hpp>
|
||||
#include <boost/utility.hpp>
|
||||
#include <algorithm>
|
||||
|
||||
#if BOOST_WORKAROUND(BOOST_MSVC, == 1600)
|
||||
|
||||
0
include/boost/range/algorithm/generate.hpp
Executable file → Normal file
0
include/boost/range/algorithm/generate.hpp
Executable file → Normal file
0
include/boost/range/algorithm/heap_algorithm.hpp
Executable file → Normal file
0
include/boost/range/algorithm/heap_algorithm.hpp
Executable file → Normal file
0
include/boost/range/algorithm/inplace_merge.hpp
Executable file → Normal file
0
include/boost/range/algorithm/inplace_merge.hpp
Executable file → Normal file
0
include/boost/range/algorithm/lexicographical_compare.hpp
Executable file → Normal file
0
include/boost/range/algorithm/lexicographical_compare.hpp
Executable file → Normal file
0
include/boost/range/algorithm/lower_bound.hpp
Executable file → Normal file
0
include/boost/range/algorithm/lower_bound.hpp
Executable file → Normal file
0
include/boost/range/algorithm/max_element.hpp
Executable file → Normal file
0
include/boost/range/algorithm/max_element.hpp
Executable file → Normal file
0
include/boost/range/algorithm/merge.hpp
Executable file → Normal file
0
include/boost/range/algorithm/merge.hpp
Executable file → Normal file
0
include/boost/range/algorithm/min_element.hpp
Executable file → Normal file
0
include/boost/range/algorithm/min_element.hpp
Executable file → Normal file
0
include/boost/range/algorithm/mismatch.hpp
Executable file → Normal file
0
include/boost/range/algorithm/mismatch.hpp
Executable file → Normal file
0
include/boost/range/algorithm/nth_element.hpp
Executable file → Normal file
0
include/boost/range/algorithm/nth_element.hpp
Executable file → Normal file
0
include/boost/range/algorithm/partial_sort.hpp
Executable file → Normal file
0
include/boost/range/algorithm/partial_sort.hpp
Executable file → Normal file
0
include/boost/range/algorithm/partial_sort_copy.hpp
Executable file → Normal file
0
include/boost/range/algorithm/partial_sort_copy.hpp
Executable file → Normal file
0
include/boost/range/algorithm/partition.hpp
Executable file → Normal file
0
include/boost/range/algorithm/partition.hpp
Executable file → Normal file
0
include/boost/range/algorithm/permutation.hpp
Executable file → Normal file
0
include/boost/range/algorithm/permutation.hpp
Executable file → Normal file
0
include/boost/range/algorithm/random_shuffle.hpp
Executable file → Normal file
0
include/boost/range/algorithm/random_shuffle.hpp
Executable file → Normal file
0
include/boost/range/algorithm/remove.hpp
Executable file → Normal file
0
include/boost/range/algorithm/remove.hpp
Executable file → Normal file
0
include/boost/range/algorithm/remove_copy.hpp
Executable file → Normal file
0
include/boost/range/algorithm/remove_copy.hpp
Executable file → Normal file
0
include/boost/range/algorithm/remove_copy_if.hpp
Executable file → Normal file
0
include/boost/range/algorithm/remove_copy_if.hpp
Executable file → Normal file
0
include/boost/range/algorithm/remove_if.hpp
Executable file → Normal file
0
include/boost/range/algorithm/remove_if.hpp
Executable file → Normal file
0
include/boost/range/algorithm/replace.hpp
Executable file → Normal file
0
include/boost/range/algorithm/replace.hpp
Executable file → Normal file
0
include/boost/range/algorithm/replace_copy.hpp
Executable file → Normal file
0
include/boost/range/algorithm/replace_copy.hpp
Executable file → Normal file
0
include/boost/range/algorithm/replace_copy_if.hpp
Executable file → Normal file
0
include/boost/range/algorithm/replace_copy_if.hpp
Executable file → Normal file
0
include/boost/range/algorithm/replace_if.hpp
Executable file → Normal file
0
include/boost/range/algorithm/replace_if.hpp
Executable file → Normal file
0
include/boost/range/algorithm/reverse.hpp
Executable file → Normal file
0
include/boost/range/algorithm/reverse.hpp
Executable file → Normal file
0
include/boost/range/algorithm/reverse_copy.hpp
Executable file → Normal file
0
include/boost/range/algorithm/reverse_copy.hpp
Executable file → Normal file
0
include/boost/range/algorithm/rotate.hpp
Executable file → Normal file
0
include/boost/range/algorithm/rotate.hpp
Executable file → Normal file
0
include/boost/range/algorithm/rotate_copy.hpp
Executable file → Normal file
0
include/boost/range/algorithm/rotate_copy.hpp
Executable file → Normal file
0
include/boost/range/algorithm/search.hpp
Executable file → Normal file
0
include/boost/range/algorithm/search.hpp
Executable file → Normal file
0
include/boost/range/algorithm/search_n.hpp
Executable file → Normal file
0
include/boost/range/algorithm/search_n.hpp
Executable file → Normal file
0
include/boost/range/algorithm/set_algorithm.hpp
Executable file → Normal file
0
include/boost/range/algorithm/set_algorithm.hpp
Executable file → Normal file
0
include/boost/range/algorithm/sort.hpp
Executable file → Normal file
0
include/boost/range/algorithm/sort.hpp
Executable file → Normal file
0
include/boost/range/algorithm/stable_partition.hpp
Executable file → Normal file
0
include/boost/range/algorithm/stable_partition.hpp
Executable file → Normal file
0
include/boost/range/algorithm/stable_sort.hpp
Executable file → Normal file
0
include/boost/range/algorithm/stable_sort.hpp
Executable file → Normal file
0
include/boost/range/algorithm/swap_ranges.hpp
Executable file → Normal file
0
include/boost/range/algorithm/swap_ranges.hpp
Executable file → Normal file
0
include/boost/range/algorithm/transform.hpp
Executable file → Normal file
0
include/boost/range/algorithm/transform.hpp
Executable file → Normal file
0
include/boost/range/algorithm/unique.hpp
Executable file → Normal file
0
include/boost/range/algorithm/unique.hpp
Executable file → Normal file
0
include/boost/range/algorithm/unique_copy.hpp
Executable file → Normal file
0
include/boost/range/algorithm/unique_copy.hpp
Executable file → Normal file
0
include/boost/range/algorithm/upper_bound.hpp
Executable file → Normal file
0
include/boost/range/algorithm/upper_bound.hpp
Executable file → Normal file
0
include/boost/range/algorithm_ext.hpp
Executable file → Normal file
0
include/boost/range/algorithm_ext.hpp
Executable file → Normal file
8
include/boost/range/algorithm_ext/copy_n.hpp
Executable file → Normal file
8
include/boost/range/algorithm_ext/copy_n.hpp
Executable file → Normal file
@@ -30,15 +30,15 @@ namespace boost
|
||||
///
|
||||
/// \pre SinglePassRange is a model of the SinglePassRangeConcept
|
||||
/// \pre OutputIterator is a model of the OutputIteratorConcept
|
||||
/// \pre 0 <= n < distance(rng)
|
||||
/// \pre 0 <= n <= distance(rng)
|
||||
template< class SinglePassRange, class Size, class OutputIterator >
|
||||
inline OutputIterator copy_n(const SinglePassRange& rng, Size n, OutputIterator out)
|
||||
{
|
||||
BOOST_RANGE_CONCEPT_ASSERT(( SinglePassRangeConcept<const SinglePassRange> ));
|
||||
BOOST_ASSERT( n < static_cast<Size>(boost::distance(rng)) );
|
||||
BOOST_ASSERT( n <= static_cast<Size>(::boost::distance(rng)) );
|
||||
BOOST_ASSERT( n >= static_cast<Size>(0) );
|
||||
|
||||
BOOST_DEDUCED_TYPENAME range_iterator<const SinglePassRange>::type source = boost::begin(rng);
|
||||
BOOST_DEDUCED_TYPENAME range_iterator<const SinglePassRange>::type source = ::boost::begin(rng);
|
||||
|
||||
for (Size i = 0; i < n; ++i, ++out, ++source)
|
||||
*out = *source;
|
||||
@@ -47,7 +47,7 @@ inline OutputIterator copy_n(const SinglePassRange& rng, Size n, OutputIterator
|
||||
}
|
||||
|
||||
} // namespace range
|
||||
using range::copy_n;
|
||||
using ::boost::range::copy_n;
|
||||
} // namespace boost
|
||||
|
||||
#endif // include guard
|
||||
|
||||
0
include/boost/range/algorithm_ext/erase.hpp
Executable file → Normal file
0
include/boost/range/algorithm_ext/erase.hpp
Executable file → Normal file
0
include/boost/range/algorithm_ext/for_each.hpp
Executable file → Normal file
0
include/boost/range/algorithm_ext/for_each.hpp
Executable file → Normal file
0
include/boost/range/algorithm_ext/insert.hpp
Executable file → Normal file
0
include/boost/range/algorithm_ext/insert.hpp
Executable file → Normal file
0
include/boost/range/algorithm_ext/overwrite.hpp
Executable file → Normal file
0
include/boost/range/algorithm_ext/overwrite.hpp
Executable file → Normal file
0
include/boost/range/algorithm_ext/push_back.hpp
Executable file → Normal file
0
include/boost/range/algorithm_ext/push_back.hpp
Executable file → Normal file
0
include/boost/range/algorithm_ext/push_front.hpp
Executable file → Normal file
0
include/boost/range/algorithm_ext/push_front.hpp
Executable file → Normal file
0
include/boost/range/as_array.hpp
Executable file → Normal file
0
include/boost/range/as_array.hpp
Executable file → Normal file
@@ -74,7 +74,7 @@ namespace boost
|
||||
#endif
|
||||
|
||||
template< class T >
|
||||
inline long is_char_ptr( T /* r */ )
|
||||
inline long is_char_ptr( const T& /* r */ )
|
||||
{
|
||||
return 0L;
|
||||
}
|
||||
|
||||
0
include/boost/range/category.hpp
Executable file → Normal file
0
include/boost/range/category.hpp
Executable file → Normal file
0
include/boost/range/combine.hpp
Executable file → Normal file
0
include/boost/range/combine.hpp
Executable file → Normal file
0
include/boost/range/config.hpp
Executable file → Normal file
0
include/boost/range/config.hpp
Executable file → Normal file
0
include/boost/range/const_reverse_iterator.hpp
Executable file → Normal file
0
include/boost/range/const_reverse_iterator.hpp
Executable file → Normal file
1
include/boost/range/counting_range.hpp
Executable file → Normal file
1
include/boost/range/counting_range.hpp
Executable file → Normal file
@@ -18,7 +18,6 @@
|
||||
#include <boost/range/iterator_range_core.hpp>
|
||||
#include <boost/range/value_type.hpp>
|
||||
#include <boost/iterator/counting_iterator.hpp>
|
||||
#include <boost/utility.hpp>
|
||||
|
||||
namespace boost
|
||||
{
|
||||
|
||||
@@ -11,7 +11,6 @@
|
||||
#define BOOST_RANGE_DETAIL_ANY_ITERATOR_HPP_INCLUDED
|
||||
|
||||
#include <boost/cast.hpp>
|
||||
#include <boost/utility.hpp>
|
||||
#include <boost/mpl/and.hpp>
|
||||
#include <boost/mpl/or.hpp>
|
||||
#include <boost/mpl/not.hpp>
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
#include <boost/array.hpp>
|
||||
#include <boost/assert.hpp>
|
||||
#include <boost/static_assert.hpp>
|
||||
#include <boost/utility.hpp>
|
||||
#include <boost/noncopyable.hpp>
|
||||
|
||||
namespace boost
|
||||
{
|
||||
|
||||
0
include/boost/range/detail/collection_traits.hpp
Executable file → Normal file
0
include/boost/range/detail/collection_traits.hpp
Executable file → Normal file
0
include/boost/range/detail/collection_traits_detail.hpp
Executable file → Normal file
0
include/boost/range/detail/collection_traits_detail.hpp
Executable file → Normal file
0
include/boost/range/detail/common.hpp
Executable file → Normal file
0
include/boost/range/detail/common.hpp
Executable file → Normal file
0
include/boost/range/detail/const_iterator.hpp
Executable file → Normal file
0
include/boost/range/detail/const_iterator.hpp
Executable file → Normal file
0
include/boost/range/detail/difference_type.hpp
Executable file → Normal file
0
include/boost/range/detail/difference_type.hpp
Executable file → Normal file
0
include/boost/range/detail/empty.hpp
Executable file → Normal file
0
include/boost/range/detail/empty.hpp
Executable file → Normal file
0
include/boost/range/detail/extract_optional_type.hpp
Executable file → Normal file
0
include/boost/range/detail/extract_optional_type.hpp
Executable file → Normal file
0
include/boost/range/detail/iterator.hpp
Executable file → Normal file
0
include/boost/range/detail/iterator.hpp
Executable file → Normal file
@@ -23,7 +23,7 @@
|
||||
#include <boost/range/empty.hpp>
|
||||
#include <boost/range/detail/demote_iterator_traversal_tag.hpp>
|
||||
#include <boost/range/value_type.hpp>
|
||||
#include <boost/utility.hpp>
|
||||
#include <boost/next_prior.hpp>
|
||||
|
||||
namespace boost
|
||||
{
|
||||
|
||||
0
include/boost/range/detail/misc_concept.hpp
Executable file → Normal file
0
include/boost/range/detail/misc_concept.hpp
Executable file → Normal file
0
include/boost/range/detail/range_return.hpp
Executable file → Normal file
0
include/boost/range/detail/range_return.hpp
Executable file → Normal file
0
include/boost/range/detail/remove_extent.hpp
Executable file → Normal file
0
include/boost/range/detail/remove_extent.hpp
Executable file → Normal file
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user