git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@4628 626c5289-ae23-0410-ae9c-e8d60b6d4f22
17 lines
366 B
C++
17 lines
366 B
C++
/* File : example.h -- stolen from the guile std_vector example */
|
|
|
|
#include <string>
|
|
#include <vector>
|
|
#include <algorithm>
|
|
#include <functional>
|
|
#include <numeric>
|
|
|
|
using std::string;
|
|
|
|
double vec_write(std::vector<string> v) {
|
|
int n = 0;
|
|
for( std::vector<string>::iterator i = v.begin();
|
|
i != v.end();
|
|
i++ )
|
|
printf( "%04d: %s\n", ++n, i->c_str() );
|
|
}
|