A function that overloads a << output operator is known as an inserter. Syntax of inserter:
ostream &operator<<(ostream &stream, class-type obj)
Where, ostream is an output stream.
An extractor acts as a complement to an inserter. Syntax of extractor:
istream &operator>>(istream &stream, class_type &obj)
Where, istream is an input stream.