Google OR-Tools v9.15
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
string_array.h File Reference
#include <string>
#include <vector>
#include "absl/strings/string_view.h"

Go to the source code of this file.

Namespaces

namespace  operations_research
 OR-Tools root namespace.

Macros

#define RETURN_STRINGIFIED_VECTOR(vector, separator, method)

Functions

template<class T>
std::string operations_research::JoinDebugString (const std::vector< T > &v, absl::string_view separator)
template<class T>
std::string operations_research::JoinDebugStringPtr (const std::vector< T > &v, absl::string_view separator)
template<class T>
std::string operations_research::JoinNamePtr (const std::vector< T > &v, absl::string_view separator)
template<class T>
std::string operations_research::JoinNameFieldPtr (const std::vector< T > &v, absl::string_view 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 26 of file string_array.h.