commit | 89041a16862ec702db63c312e8f0f7e88ed82c4e | [log] [tgz] |
---|---|---|
author | Wouter van Oortmerssen <aardappel@gmail.com> | Mon Mar 27 17:46:34 2017 -0700 |
committer | Wouter van Oortmerssen <aardappel@gmail.com> | Mon Mar 27 17:50:30 2017 -0700 |
tree | 7c7810753c642c7c75c4628aa2acab08b6fc2b87 | |
parent | 7a36419f24f0456bb97cbc72424286cc41522647 [diff] |
Add a VectorCast function that safely casts from Vector<Offset<T>> to Vector<Offset<U>> if U is a base class of T. This is useful for when you want to generically iterate over a vector of objects that derive from flatbuffers::Table. Change-Id: I59161e3b9f40501f72e02b46509be9dc8ab86c6b