diff options
Diffstat (limited to 'include/value.h')
| -rw-r--r-- | include/value.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/value.h b/include/value.h index 7d3dfc0e92..64e79efe9c 100644 --- a/include/value.h +++ b/include/value.h @@ -128,6 +128,11 @@ public: value& operator[](const std::string& key); value& operator[](const char* key); //need this overload because of conflict with built-in operator[] + /** + * @brief Creates a copy of the value + */ + value copy() const; + std::unique_ptr<tag>& get_ptr(); const std::unique_ptr<tag>& get_ptr() const; void set_ptr(std::unique_ptr<tag>&& t); |
