OR-Tools  9.2
string_array.h File Reference

Go to the source code of this file.

Namespaces

 operations_research
 Collection of objects used to extend the Constraint Solver library.
 

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.