14 #ifndef OR_TOOLS_UTIL_STRING_ARRAY_H_ 15 #define OR_TOOLS_UTIL_STRING_ARRAY_H_ 24 #define RETURN_STRINGIFIED_VECTOR(vector, separator, method) \ 26 for (int i = 0; i < vector.size(); ++i) { \ 27 if (i > 0) out += separator; \ 28 out += vector[i] method; \ 39 const std::string& separator) {
46 const std::string& separator) {
52 std::string
JoinNamePtr(
const std::vector<T>& v,
const std::string& separator) {
59 const std::string& separator) {
63 #undef RETURN_STRINGIFIED_VECTOR 66 #endif // OR_TOOLS_UTIL_STRING_ARRAY_H_ std::string JoinNamePtr(const std::vector< T > &v, const std::string &separator)
#define RETURN_STRINGIFIED_VECTOR(vector, separator, method)
std::string JoinNameFieldPtr(const std::vector< T > &v, const std::string &separator)
std::string JoinDebugString(const std::vector< T > &v, const std::string &separator)
Collection of objects used to extend the Constraint Solver library.
std::string JoinDebugStringPtr(const std::vector< T > &v, const std::string &separator)