add pop_back to arrays
[folly.git] / folly / dynamic.h
index 3defcfafc8ed7271c955105e81c91a1294f39d46..4f02bd0c000b6139fcfe0954d0c6dd82475651cb 100644 (file)
@@ -415,6 +415,14 @@ public:
   void push_back(dynamic const&);
   void push_back(dynamic&&);
 
+  /*
+   * Remove an element from the back of an array.  If this is not an array,
+   * throws TypeError.
+   *
+   * Does not invalidate iterators.
+   */
+  void pop_back();
+
   /*
    * Get a hash code.  This function is called by a std::hash<>
    * specialization, also.