Commit 0a9411bf authored by Davis King's avatar Davis King

Added to_std_vector() to the random_subset_selector.

parent 6d4f5b49
......@@ -64,6 +64,9 @@ namespace dlib
update_next_add_accepts();
}
const std::vector<T>& to_std_vector(
) const { return items; }
unsigned long size (
) const
{
......
......@@ -217,6 +217,18 @@ namespace dlib
this container
!*/
const std::vector<T>& to_std_vector(
) const;
/*!
ensures
- returns a const reference to the underlying std::vector<T> that contains
all elements in this object. That is, this function returns a vector, V,
which has the following properties:
- V.size() == this->size()
- V.begin() == this->begin()
- V.end() == this->end()
!*/
void swap (
random_subset_selector& item
);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment