Canoe
Comprehensive Atmosphere N' Ocean Engine
vectorize.hpp File Reference
#include <cstring>
#include <string>
#include <vector>

Go to the source code of this file.

Functions

template<typename A >
std::vector< AVectorize (const char *cstr, const char *delimiter=" ")
 split a string to a vector More...
 
template<>
std::vector< std::string > Vectorize (const char *cstr, const char *delimiter)
 split a string to a vector More...
 

Function Documentation

◆ Vectorize() [1/2]

template<typename A >
std::vector<A> Vectorize ( const char *  cstr,
const char *  delimiter = " " 
)

split a string to a vector

Definition at line 11 of file vectorize.hpp.

◆ Vectorize() [2/2]

template<>
std::vector<std::string> Vectorize ( const char *  cstr,
const char *  delimiter 
)

split a string to a vector

Definition at line 10 of file vectorize.cpp.