[cpp] add find a writer