template<typename T>
psl::serialization::polymorphic class

contains the polymorphic lambda constructor for your polymorphic type

This will be used by the deserializer to create the correct type for the format node. All polymorphic types are internally mapped to an ID (generated from a name you give). These values are saved in the format, and on deserialization are used to figure out how to construct the object in the format. Aside from the fact you need to register your polymorphic types (once), there should be no further interaction with this class.