mirror of
https://github.com/github/codeql.git
synced 2025-12-17 17:23:36 +01:00
22 lines
250 B
C++
22 lines
250 B
C++
template <typename T>
|
|
struct vector
|
|
{
|
|
T* begin() { return nullptr; }
|
|
T* end() { return nullptr; }
|
|
};
|
|
|
|
template <typename T>
|
|
void stream_it(vector<T>& t)
|
|
{
|
|
for(T& itr : t)
|
|
{
|
|
}
|
|
}
|
|
|
|
int main()
|
|
{
|
|
vector<int> xs;
|
|
stream_it(xs);
|
|
return 0;
|
|
}
|