#include <iostream>
#include <vector>
using namespace std;

struct Test {
	vector<float> _vector;
	const float& GetElement(size_t x) const {
        return _vector.at(x);
    }
};

int main() {
	Test tst;
	tst._vector.push_back(123.456);
	cout << tst.GetElement(0) << endl;
	return 0;
}