forked from boostorg/iterator
added array_traits and pri_queue from boost
[SVN r409]
This commit is contained in:
@@ -113,9 +113,10 @@ namespace boost_concepts {
|
|||||||
// Iterator Traversal Concepts
|
// Iterator Traversal Concepts
|
||||||
|
|
||||||
template <typename Iterator>
|
template <typename Iterator>
|
||||||
class ForwardIteratorConcept {
|
class ForwardTraversalConcept {
|
||||||
public:
|
public:
|
||||||
typedef typename boost::traversal_category<Iterator>::type traversal_category;
|
typedef typename boost::traversal_category<Iterator>::type
|
||||||
|
traversal_category;
|
||||||
|
|
||||||
void constraints() {
|
void constraints() {
|
||||||
boost::function_requires< boost::SGIAssignableConcept<Iterator> >();
|
boost::function_requires< boost::SGIAssignableConcept<Iterator> >();
|
||||||
@@ -132,9 +133,10 @@ namespace boost_concepts {
|
|||||||
};
|
};
|
||||||
|
|
||||||
template <typename Iterator>
|
template <typename Iterator>
|
||||||
class BidirectionalIteratorConcept {
|
class BidirectionalTraversalConcept {
|
||||||
public:
|
public:
|
||||||
typedef typename boost::traversal_category<Iterator>::type traversal_category;
|
typedef typename boost::traversal_category<Iterator>::type
|
||||||
|
traversal_category;
|
||||||
|
|
||||||
void constraints() {
|
void constraints() {
|
||||||
boost::function_requires< ForwardIteratorConcept<Iterator> >();
|
boost::function_requires< ForwardIteratorConcept<Iterator> >();
|
||||||
@@ -149,9 +151,10 @@ namespace boost_concepts {
|
|||||||
};
|
};
|
||||||
|
|
||||||
template <typename Iterator>
|
template <typename Iterator>
|
||||||
class RandomAccessIteratorConcept {
|
class RandomAccessTraversalConcept {
|
||||||
public:
|
public:
|
||||||
typedef typename boost::traversal_category<Iterator>::type traversal_category;
|
typedef typename boost::traversal_category<Iterator>::type
|
||||||
|
traversal_category;
|
||||||
typedef typename std::iterator_traits<Iterator>::difference_type
|
typedef typename std::iterator_traits<Iterator>::difference_type
|
||||||
difference_type;
|
difference_type;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user