| 756 | |
| 757 | template <typename T> |
| 758 | std::vector<T> restoreStdVectorFromFile(const char* filePath) { |
| 759 | std::ifstream in(filePath, std::ifstream::binary); |
| 760 | auto size = read<int32_t>(in); |
| 761 | std::vector<T> vec(size); |
| 762 | |
| 763 | in.read(reinterpret_cast<char*>(vec.data()), size * sizeof(T)); |
| 764 | in.close(); |
| 765 | return vec; |
| 766 | } |
| 767 | |
| 768 | template std::vector<column_index_t> restoreStdVectorFromFile<column_index_t>( |
| 769 | const char* filePath); |