Skip to content

Commit 290ed6d

Browse files
authored
Merge pull request #42 from ciband/feat/begin_end
feat: Add std::begin and std::end functions.
2 parents 8f3a8a9 + 28508cc commit 290ed6d

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

src/iterator

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -220,6 +220,12 @@ namespace std{
220220
bool f;
221221
};
222222

223+
template< class C >
224+
auto begin( C& c ) -> decltype(c.begin()) { return c.begin(); }
225+
226+
template< class C >
227+
auto end( C& c ) -> decltype(c.end()) { return c.end(); }
228+
223229
}
224230

225231
#pragma GCC visibility pop

0 commit comments

Comments
 (0)