void fillToTheBrim(DataStore &data_store, PointType point_type, T value) { for (int i(0); i < RTIMDB_POINT_COUNT; ++i) { data_store.insert(point_type, PointValue(value), Flags(), Timestamp()); } }
Errors fillToTheBrim(DataStore &data_store, PointType point_type, T value) { for (int i(0); i < RTIMDB_POINT_COUNT; ++i) { auto insert_result(data_store.insert(point_type, PointValue(value), Flags(), Timestamp())); if (Errors::no_error__ != insert_result.second) return insert_result.second; } return Errors::no_error__; }