Skip to content

Commit

Permalink
Added std::cbegin() for infinite_sequence_adaptor
Browse files Browse the repository at this point in the history
  • Loading branch information
evaleev committed Jul 26, 2014
1 parent 90ffc01 commit 5f76b3a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions btas/util/sequence_adaptor.h
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,10 @@ namespace std {
return reference_wrapper<const btas::infinite_sequence_adaptor<_T*>>(t);
}

template <typename T>
auto cbegin(const btas::infinite_sequence_adaptor<T>& x) -> decltype(x.cbegin()) {
return x.cbegin();
}

}

Expand Down

0 comments on commit 5f76b3a

Please sign in to comment.