summaryrefslogtreecommitdiff
path: root/src/lib/util.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/util.h')
-rw-r--r--src/lib/util.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/lib/util.h b/src/lib/util.h
index 12c79ea5a..f8e9409f1 100644
--- a/src/lib/util.h
+++ b/src/lib/util.h
@@ -128,6 +128,17 @@ vector_to_list (std::vector<T> v)
return l;
}
+template <class T>
+std::vector<T>
+list_to_vector (std::list<T> v)
+{
+ std::vector<T> l;
+ BOOST_FOREACH (T& i, v) {
+ l.push_back (i);
+ }
+ return l;
+}
+
extern double db_to_linear (double db);
extern double linear_to_db (double linear);