Vcsn  2.3
Be Rational
to-string.hh
Go to the documentation of this file.
1 #pragma once
2 
3 #include <sstream>
4 #include <string>
5 
6 #include <vcsn/misc/export.hh> // LIBVCSN_API
7 
8 namespace vcsn LIBVCSN_API
9 {
11  template <typename ValueSet, typename Value = typename ValueSet::value_t,
12  typename... Args>
13  auto
14  to_string(const ValueSet& vs, const Value& v, Args&&... args)
15  -> std::string
16  {
17  std::ostringstream o;
18  vs.print(v, o, std::forward<Args>(args)...);
19  return o.str();
20  }
21 }
return v
Definition: multiply.hh:361
Definition: a-star.hh:8
#define LIBVCSN_API
Definition: export.hh:8
std::string to_string(direction d)
Conversion to string.
Definition: direction.cc:7