Template:cast rreq/doc

This is one of the templates used to specify that some type must be convertible to another. All these templates can emit either of the requirements that it must be possible to convert an object of particular type to another type or it must be possible to dereference an object of particular type and then convert it to another type. This behavior depends an the supplied parameters ( means plain type, - type that must be dereferenced first).

base_type - base_type must be convertible to or.

base_type - or  must be convertible to base_type.

base_type1 - or  must be convertible to base_type1 or  or  must be convertible to base_type2. If neither nor  is supplied, it is assumed that  or  must be convertible to both base_type1 or base_type2.