C++ Clean code
```\nclass OrderedStream {\n    vector stream;\n    int pointer;\npublic:\n    OrderedStream(int n) {\n        stream.resize(n + 1);\n        pointer = 1;\n    
```\nclass OrderedStream {\n    vector<string> stream;\n    int pointer;\npublic:\n    OrderedStream(int n) {\n        stream.resize(n + 1);\n        pointer = 1;\n    }\n    \n    vector<string> insert(int id, string value) {\n        stream[id] = value;\n        vector<string> result;\n        \n        while (pointer < stream.size() and not stream[pointer].empty())\n            result.push_back(stream[pointer++]);\n        \n        return result;\n    }\n};
[]