pybind11 icon indicating copy to clipboard operation
pybind11 copied to clipboard

cast: Add is_generic_type<T>

Open EricCousineau-TRI opened this issue 3 years ago • 0 comments

Description

Adds explicit way to denote a is_generic_type<>, which is effectively bullet point (1) from the docs: https://pybind11.readthedocs.io/en/stable/advanced/cast/index.html

Permits distinction from bullet points (2) and (3)

Suggested changelog entry:

Adds is_generic_type<> trait

EricCousineau-TRI avatar Apr 11 '22 00:04 EricCousineau-TRI