This is because "cell" is not really a type - it is a placeholder for everything you want to place in it. The closest thing I can think of in languages ββlike C # and Python is the "tuple", which essentially can contain anonymous types.
Since C ++ does not have a built-in tuple type, I suggest you take a look at Boost , which is a very comprehensive, mature and open source library for almost everything you need in C ++. Under Boost, browse the Fusion library, or if you need something no more simple, on Tuple .
EDIT , as Matt, pulled below, like TR1, tuples are part of the C ++ standard library. See Matt Link here .
source share