Skip to content

Commit 28508cc

Browse files
committed
feat: Add std::begin and std::end functions.
1 parent b8d0f22 commit 28508cc

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)