For a class assignment, we are required to have a private struct in a class, but we need to have the same struct as a return value (not a pointer to it). Something along these lines:
private:
struct Employee
{
int id;
string name;
};
public:
struct Employee find(int key);
Is this possible using exclusively the STL?
It can be done but does not make great sense because the interface should be public.
For example
The program output is