-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
18 additions
and
0 deletions.
There are no files selected for viewing
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
--- | ||
title: C++中的SFINAE | ||
date: 2024-07-11 21:00:00 | ||
tags: | ||
categories: | ||
description: | ||
--- | ||
|
||
# Substitution Failure Is Not An Error | ||
|
||
## 模板的特化(非必须) | ||
|
||
|
||
## SFINAE的基本原理 | ||
|
||
**核心思想:**当编译器在模板实例化过程中尝试替换模板参数时,如果替换失败,编译器不会报错而是尝试其他可能的重载,只有当所有可能的重载全部都失败时,编译器才会报错。 | ||
|
||
|
File renamed without changes.