title: How to make const variables filled at runtime accessible across all of the program?
body: <p>What technique should I use to make a list of <code>const</code> variables whose value is known only at runtime accessible across all of the program?</p>
  <p>Yes, I can make it in a way like that:</p>
  <pre><code>class some
  {
      static const int a;
      static const int b;
      ...
      static const int z;
  };
  
  int some::a(f1());
  int some::b(f2());
  ...
  int some::z(f3());
  </code></pre>
  <p>And I guess it will work fine... But what if there are many such variables? In such a case there must be a lot of corresponding functions, and I don't find this solution elegant.</p>
  <p>Have you got any ideas?</p>