In my program I have a collection of some "entries" representing some files. It looks like this:
class Entries
{
public:
//...
private:
std::vector<std::filesystem::path> paths_;
std::vector<std::string> mimeTypes_;
std::vector<std::size_t> sizes_
std::vector<std::filesystem::file_time_type> lastWrites_;
//...
};
Let's say I want to sort my entries by one of the properties(path, type, size or modification time). Is there any way I can "link" all the vectors together so that when sorting one of them the elements of the others will be sorted in exactly the same way?