TL;DR: You can stream from a string instead of STDIN. Code is simple and is listed below.
A project I did recently had a requirement to overload the >> operator use and STDIN to load data. The problem was not the overload itself, but the fact that testing