{
  "schemaVersion": "0.11.0",
  "canonical": "https://www.pystone.net/notes/cpp-template-generic-programming/",
  "atlas": "https://www.pystone.net/?node=cpp-template-generic-programming#knowledge-atlas",
  "markdown": "https://www.pystone.net/notes/cpp-template-generic-programming.md",
  "context": "https://www.pystone.net/notes/cpp-template-generic-programming.context.json",
  "knowledgeVersion": "224c990773de.5fa8af6e39fa",
  "build": {
    "siteCommit": "224c990773de166d23a886306577dd90379529ce",
    "notesCommit": "5fa8af6e39fa3891d1b9b4832bfa6c4e0ecaaf0a",
    "builtAt": "1970-01-01T00:00:00.000Z",
    "version": "224c990773de.5fa8af6e39fa"
  },
  "id": "note:cpp-template-generic-programming",
  "slug": "cpp-template-generic-programming",
  "title": "模板与泛型编程",
  "type": "note",
  "visibility": "public",
  "idStability": "rename-stable",
  "author": {
    "name": "Perrin Yong",
    "profile": "https://www.pystone.net/profile/"
  },
  "publisher": {
    "name": "Perrin Yong",
    "profile": "https://www.pystone.net/profile/"
  },
  "aliases": [],
  "summary": "模板与泛型编程",
  "contentRole": "unspecified",
  "isMoc": false,
  "mocRecognition": "none",
  "generated": false,
  "attribution": "unspecified",
  "domain": "10-计算机、信息技术与工程",
  "tags": [],
  "mocs": [],
  "contentHash": "d442a517561a5416ed95968abc4cda70d8fdbb9ae6bb9750258f5410f8cee83c",
  "assets": [],
  "headings": [
    {
      "depth": 1,
      "text": "模板与泛型编程",
      "anchor": "模板与泛型编程",
      "citation": "https://www.pystone.net/notes/cpp-template-generic-programming/#%E6%A8%A1%E6%9D%BF%E4%B8%8E%E6%B3%9B%E5%9E%8B%E7%BC%96%E7%A8%8B"
    },
    {
      "depth": 3,
      "text": "概念",
      "anchor": "概念",
      "citation": "https://www.pystone.net/notes/cpp-template-generic-programming/#%E6%A6%82%E5%BF%B5"
    }
  ],
  "claims": [],
  "outgoing": [],
  "incoming": [
    {
      "id": "note:programming-languages-and-runtimes",
      "title": "编程语言与运行时",
      "url": "https://www.pystone.net/notes/programming-languages-and-runtimes/",
      "atlas": "https://www.pystone.net/?node=programming-languages-and-runtimes#knowledge-atlas",
      "label": "编程语言与运行时",
      "origin": "explicit",
      "humanReviewed": true,
      "context": "C++中的“模板与泛型编程”导航项",
      "citation": "https://www.pystone.net/notes/programming-languages-and-runtimes/#c"
    }
  ],
  "contentMarkdown": "# 模板与泛型编程\n\n﻿# 模板与泛型编程\n\n> 创建时间：2020/4/21 0:29\n\n### 概念\n\n**泛型** ：通过 **参数化类型** 来实现在同一份代码上操作多种数据类型。\n**泛型编程** 是一种编程范式，它利用“参数化类型”将类型抽象化，从而以一种 **独立于任何特定类型** 的方式编写代码，实现更为灵活的复用。\n\n**模板（Template）** ：是创建泛型类或函数的蓝图或公式。\n**模板（Template）** ：指C++程序设计语言中采用类型作为参数的程序设计\n模板包括：函数模板，类模板\n\n**待整理，参考https://blog.csdn.net/tonglin12138/article/details/88595747**\n"
}
