my first thought was a metal flask with the top cut off
The trouble with these are the seams around the bottom. Non-sylindrical shapes are typically not stamped out of a single sheat of metal, but out of strips of metal that are welded or soldered together. This soldering/welding may very well contain nasty stuff that you really don't want to heat up and ingest.
I don't know how much weight to put into this: As long as there is liquid water in it, the inside of a cup won't be heated above 100C. Probably not hot enough for nasty stuff to start polluting your brew in large quantities. Long term exposure effects to harmful chemicals is probably not relevant for rarely used emergency items.
Anyway, since no one really knows what's in those blotched seams I have a dislike against boiling my water in a hip flask.YMMW.
If someone can dig up the old thread "... and a cup" you'll have 13 pages or so of extensive discussion about this and other ingenious solutions....