#pragma once
#include <cstddef> // For size_t

#include <vector>

class StockData_Modern {
public:
    // Constructor
    StockData_Modern(size_t size);

    // No Copy Constructor, Copy Assignment, or Destructor needed!
    // The compiler-generated versions work perfectly because `std::vector` handles itself.

    // Public method to access data
    double& at(size_t index);

private:
    std::vector<double> data_;
};
