Default values in templates with template arguments ( C++ )

后端 未结 6 954
名媛妹妹
名媛妹妹 2020-12-05 05:03

Assume I have a template (called ExampleTemplate) that takes two arguments: a container type (e.g. list, vector) and a contained type (e.g. float, bool, etc). Since containe

6条回答
  •  一生所求
    2020-12-05 05:12

    I would propose to create adapters.

    Your class should be created with the exact level of personalization that is required by the class:

    template