Skip to content
This repository was archived by the owner on Feb 5, 2019. It is now read-only.

Commit 29b1962

Browse files
committed
Adding some includes to appease build bots. Amends r203354
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@203356 91177308-0d34-0410-b5e6-96231b3b80d8
1 parent 5c47b58 commit 29b1962

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

include/llvm/ADT/iterator_range.h

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@
1919
#ifndef LLVM_ADT_ITERATOR_RANGE_H
2020
#define LLVM_ADT_ITERATOR_RANGE_H
2121

22+
#include <algorithm>
23+
#include <iterator>
2224
#include <utility>
2325

2426
namespace llvm {
@@ -52,9 +54,9 @@ class iterator_range {
5254

5355
/// \brief Determine the distance between the end() and begin() iterators of
5456
/// a range. Analogous to std::distance().
55-
template <class Range>
56-
typename range_traits<Range>::difference_type distance(Range R) {
57-
return std::distance(R.begin(), R.end());
57+
template <class Range>
58+
typename range_traits<Range>::difference_type distance(Range R) {
59+
return std::distance(R.begin(), R.end());
5860
}
5961

6062
/// \brief Copies members of a range into the output iterator provided.

0 commit comments

Comments
 (0)