I have a class something like this
friend ostream & operator<<(ostream &os, A<T> & dy);
x,y and value are some public elements of List<T>
ostream & operator<<(ostream &os, A<T> & dy)
I do some operations on list and when I want to print the list elements , I wrote something like in implementation of operator<<, but i get segmentation error. How can i reach those x,y,and value in operator<< implementation?