<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>SFINAE on PlumePHP</title><link>https://plumephp.com/tags/sfinae/</link><description>Recent content in SFINAE on PlumePHP</description><generator>Hugo</generator><language>zh-CN</language><lastBuildDate>Thu, 10 Sep 2026 10:00:00 +0800</lastBuildDate><atom:link href="https://plumephp.com/tags/sfinae/index.xml" rel="self" type="application/rss+xml"/><item><title>C++ 模板与泛型编程：从函数模板到 SFINAE</title><link>https://plumephp.com/cpp-templates-generics/</link><pubDate>Thu, 10 Sep 2026 10:00:00 +0800</pubDate><guid>https://plumephp.com/cpp-templates-generics/</guid><description>&lt;p&gt;&lt;strong&gt;目录：&lt;/strong&gt;&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;函数模板与参数推导&lt;/li&gt;
&lt;li&gt;类模板与偏特化&lt;/li&gt;
&lt;li&gt;类型萃取与自定义检测&lt;/li&gt;
&lt;li&gt;SFINAE 原理与 &lt;code&gt;std::enable_if&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;CRTP：静态多态&lt;/li&gt;
&lt;li&gt;表达式 SFINAE 与检测惯用法&lt;/li&gt;
&lt;li&gt;综合实战示例&lt;/li&gt;
&lt;/ol&gt;
&lt;hr&gt;
&lt;p&gt;C++ 模板不仅是泛型编程的基础，更是元编程的入口。从简单的函数模板到复杂的 SFINAE 技巧，模板系统让类型本身成为可计算的对象。本文将系统梳理函数模板、类模板、类型萃取、SFINAE、CRTP 等核心概念，并给出可直接编译运行的代码示例。&lt;/p&gt;</description></item></channel></rss>