HRCPP-151 Do not use STL classes in public API
* this commit brings backward compatibility (but the methods are deprecated)