Google OR-Tools: ortools/base/iterator_adaptors.h Source File

Go to the documentation of this file.

1

2

3

4

5

6

7

8

9

10

11

12

13

14#ifndef ORTOOLS_BASE_ITERATOR_ADAPTORS_H_

15#define ORTOOLS_BASE_ITERATOR_ADAPTORS_H_

16

17namespace gtl {

18

19template <class Container>

21 public:

22 typedef typename Container::const_reverse_iterator const_it;

23

27

28 private:

29 const Container& c_;

30};

31

32template <class Container>

36

37}

38

39#endif

const_it begin() const

Definition iterator_adaptors.h:25

Container::const_reverse_iterator const_it

Definition iterator_adaptors.h:22

ReverseView(const Container &c)

Definition iterator_adaptors.h:24

const_it end() const

Definition iterator_adaptors.h:26

ReverseView< Container > reversed_view(const Container &c)

Definition iterator_adaptors.h:33