---
title: "Discussion on \"簡介 C++ 的 Type Erase (用多型和模板做 Duck Type)\" | Hashnode"
description: "Discussion on \"簡介 C++ 的 Type Erase (用多型和模板做 Duck Type)\". 簡介 C++ 的 Type Erase 技術，使用多型和模板實現 Duck Type。"
url: "https://hashnode.com/posts/cpp-type-erase-duck-type/66437e82a48a725b830fb181"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [簡介 C++ 的 Type Erase (用多型和模板做 Duck Type)](https://notes.mukyu.dev/cpp-type-erase-duck-type?utm_source=hashnode&utm_medium=feed)

簡介 C++ 的 Type Erase 技術，使用多型和模板實現 Duck Type。

May 14, 2024 · 3 min read · notes.mukyu.dev  
Updated Oct 27  
Read the article

-   [#cpp-ck4ra5k7300nlv2s1jbkdp2qh](https://hashnode.com/tag/cpp-ck4ra5k7300nlv2s1jbkdp2qh)
-   [#polymorphism](https://hashnode.com/tag/polymorphism)

## Written by

[Patchouli](https://hashnode.com/@mudream4869)

@mudream4869 · Uohout

  
[View profile](https://hashnode.com/@mudream4869)

工程師帕秋莉~

後端工程師。 不定時張貼一些寫扣時的筆記，有時英文，有時中文。 「如果，我是魔女的話...」

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
