OR-Tools  8.1
string_array.h File Reference

Go to the source code of this file.

Namespaces

 operations_research
 The vehicle routing library lets one model and solve generic vehicle routing problems ranging from the Traveling Salesman Problem to more complex problems such as the Capacitated Vehicle Routing Problem with Time Windows.
 

Macros

#define RETURN_STRINGIFIED_VECTOR(vector, separator, method)
 

Functions

template<class T >
std::string JoinDebugString (const std::vector< T > &v, const std::string &separator)
 
template<class T >
std::string JoinDebugStringPtr (const std::vector< T > &v, const std::string &separator)
 
template<class T >
std::string JoinNamePtr (const std::vector< T > &v, const std::string &separator)
 
template<class T >
std::string JoinNameFieldPtr (const std::vector< T > &v, const std::string &separator)
 

Macro Definition Documentation

◆ RETURN_STRINGIFIED_VECTOR

#define RETURN_STRINGIFIED_VECTOR (   vector,
  separator,
  method 
)
Value:
std::string out; \
for (int i = 0; i < vector.size(); ++i) { \
if (i > 0) out += separator; \
out += vector[i] method; \
} \
return out

Definition at line 24 of file string_array.h.