StackOverflow Questions for Tag: sfinae

user2138149
user2138149

Reputation: 17268

Static (constexpr) function dispatch and dependency injection with templates in C++23

Score: 1

Views: 49

Answers: 1

Read More
chenel
chenel

Reputation: 41

conditionally enable conversion operator with SFINAE

Score: 0

Views: 135

Answers: 1

Read More
Nick
Nick

Reputation: 27996

How can I add reflection to a C++ application?

Score: 333

Views: 300636

Answers: 28

Read More
Jesse Beder
Jesse Beder

Reputation: 34054

How to call a templated function if it exists, and something else otherwise?

Score: 34

Views: 5736

Answers: 8

Read More
roschach
roschach

Reputation: 9396

Why adding "* = nullptr" to a template defined with enable_if avoids overloading of a function?

Score: -1

Views: 103

Answers: 2

Read More
JEdwards
JEdwards

Reputation: 56

What is the difference between using `enable_if` in the template specification vs in the return type?

Score: 2

Views: 130

Answers: 0

Read More
Craig Stoneham
Craig Stoneham

Reputation: 31

Check for the existence of a template function in c++

Score: 2

Views: 120

Answers: 2

Read More
Ben
Ben

Reputation: 9723

LIFT macro that has std::invoke-like behavior?

Score: 0

Views: 148

Answers: 0

Read More
AMDG
AMDG

Reputation: 1202

How do I test if a class is derived from an arbitrary template class without specifying arguments?

Score: 0

Views: 83

Answers: 1

Read More
JohannesWilde
JohannesWilde

Reputation: 174

Is there a more elegent way to implement overloads for extended integer types with hidden templates in C++?

Score: 0

Views: 86

Answers: 0

Read More
deponovo
deponovo

Reputation: 1432

Function template correct definition for forward reference to an array and type of element

Score: 1

Views: 122

Answers: 1

Read More
Alexis ROARD
Alexis ROARD

Reputation: 53

How to get constructor parameter types as a tuple in C++?

Score: 5

Views: 178

Answers: 1

Read More
iammilind
iammilind

Reputation: 70078

Is C++ (03) SFINAE aspect compiler independent?

Score: 1

Views: 271

Answers: 2

Read More
Enlico
Enlico

Reputation: 28490

How to check at compile time for the existence of a global-scope function accepting given argument types?

Score: 10

Views: 472

Answers: 1

Read More
asimes
asimes

Reputation: 6080

Can std::enable_if methods be defined outside of a class

Score: -1

Views: 78

Answers: 1

Read More
user28091278
user28091278

Reputation: 1

Is there a C++20 concept that will be called when a function is used from a certain library?

Score: 0

Views: 64

Answers: 1

Read More
joaocandre
joaocandre

Reputation: 1745

Disable class template member for void types?

Score: 2

Views: 1512

Answers: 3

Read More
Trade-Ideas Philip
Trade-Ideas Philip

Reputation: 1247

What's the right way to call static_assert(false)?

Score: 11

Views: 6780

Answers: 5

Read More
Refugnic Eternium
Refugnic Eternium

Reputation: 4291

Eliminate functions from template class in C++03

Score: 13

Views: 917

Answers: 2

Read More
Dean DeRosa
Dean DeRosa

Reputation: 61

Why is void_t used in SFINAE?

Score: 5

Views: 148

Answers: 2

Read More
PreviousPage 1Next