Span
This commit is contained in:
@ -1,7 +1,21 @@
|
||||
#include <stdio.h>
|
||||
#include <iacore/log.hpp>
|
||||
#include <iacore/file.hpp>
|
||||
|
||||
#include <iacore/vector.hpp>
|
||||
|
||||
using namespace ia;
|
||||
|
||||
VOID print(IN CONST Span<int>& s)
|
||||
{
|
||||
for(const auto& v: s)
|
||||
Logger::Info(v);
|
||||
}
|
||||
|
||||
int main(int argc, char* argv[])
|
||||
{
|
||||
|
||||
Vector<int> v1{10, 20, 32};
|
||||
|
||||
print(v1);
|
||||
|
||||
return 0;
|
||||
}
|
||||
Reference in New Issue
Block a user