I am trying to find a simple way to check whether a vector is a subset of another without sorting the order of elements in the vector. Both the vectors contain random number elements in them.
std::includes seems to work only for sorted ranges. How can I accomplish this?
Copy the vectors. Sort the copies. Then use
std::includeson the copies.