Add samples to FBVector documentation
[folly.git] / folly / small_vector.h
index 5f7e27333dc6be1146bcbd7b9aa8e96d26770156..4a0fa276f3ab1a469582447bdb8b3b054aaaa9fa 100644 (file)
@@ -846,14 +846,14 @@ public:
 
   reference at(size_type i) {
     if (i >= size()) {
-      throw std::out_of_range();
+      throw std::out_of_range("index out of range");
     }
     return (*this)[i];
   }
 
   const_reference at(size_type i) const {
     if (i >= size()) {
-      throw std::out_of_range();
+      throw std::out_of_range("index out of range");
     }
     return (*this)[i];
   }