summaryrefslogtreecommitdiff
path: root/src/ipa/libipa/pwl.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/ipa/libipa/pwl.cpp')
-rw-r--r--src/ipa/libipa/pwl.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/ipa/libipa/pwl.cpp b/src/ipa/libipa/pwl.cpp
index 8b437dd1..cf864fbb 100644
--- a/src/ipa/libipa/pwl.cpp
+++ b/src/ipa/libipa/pwl.cpp
@@ -115,6 +115,17 @@ Pwl::Pwl(const std::vector<Point> &points)
}
/**
+ * \copydoc Pwl::Pwl(const std::vector<Point> &points)
+ *
+ * The contents of the \a points vector is moved to the newly constructed Pwl
+ * instance.
+ */
+Pwl::Pwl(std::vector<Point> &&points)
+ : points_(std::move(points))
+{
+}
+
+/**
* \brief Populate the piecewise linear function from yaml data
* \param[in] params Yaml data to populate the piecewise linear function with
*