|
FMI Ticket System
| Kamen Mladenov | FMI Computer Science Year 1 Group 6 | Project 1 | Project Topic 4 |
|
Stores declaration and definition of templated class List. More...
#include <istream>#include <ostream>Go to the source code of this file.
Classes | |
| class | List< T > |
| Templated class that stores an array of elements in dynamic memory. More... | |
Functions | |
| template<typename T > | |
| std::istream & | operator>> (std::istream &istr, List< T > &obj) |
| Reads List from stream with >> operator. More... | |
| template<typename T > | |
| std::ostream & | operator<< (std::ostream &ostr, const List< T > &obj) |
| Writes List to stream with << operator. More... | |
Stores declaration and definition of templated class List.
| std::ostream & operator<< | ( | std::ostream & | ostr, |
| const List< T > & | obj | ||
| ) |
Writes List to stream with << operator.
Uses the stream's << operator to write the count and then all objects.
| std::istream & operator>> | ( | std::istream & | istr, |
| List< T > & | obj | ||
| ) |
Reads List from stream with >> operator.
Uses the stream's >> operator to read and parse the elements. The first item in the stream should be the count.