#include "List.h" std::ostream&operator<<(std::ostream&out,List&rhs){ bool first=true; out<<'['; for (Element&e:rhs.elements){ if (!first){ out<<','; } out<