StackOverflow Questions for Tag: function-template

Sherwood Wang
Sherwood Wang

Reputation: 715

How do you call a templated C++ free function from C?

Score: 7

Views: 258

Answers: 2

Read More

c++ address of an overloaded function

Score: 5

Views: 210

Answers: 1

Read More
meng lu
meng lu

Reputation: 1

The difference of " *mat.ptr<float>(i,j)" and "*mat.ptr(i,j)"?

Score: 0

Views: 74

Answers: 0

Read More
myoldgrandpa
myoldgrandpa

Reputation: 1019

Why do I have `-Wunsupported-friend` warning when I compile friend function template?

Score: 2

Views: 82

Answers: 1

Read More
user53670
user53670

Reputation:

What is the difference between function template and template function?

Score: 21

Views: 14315

Answers: 3

Read More
JensB
JensB

Reputation: 939

Is there any workaround for a virtual function template with a type constraint in this case?

Score: 0

Views: 202

Answers: 1

Read More
Oersted
Oersted

Reputation: 2714

deducing non-type template argument type from template function argument

Score: 1

Views: 112

Answers: 2

Read More
Avi
Avi

Reputation: 147

How can you return different types from a function template depending on a condition?

Score: 6

Views: 6088

Answers: 4

Read More
fetis
fetis

Reputation: 33

Can you conditionally remove a function parameter based on a template parameter?

Score: 1

Views: 150

Answers: 1

Read More
Gunther Piez
Gunther Piez

Reputation: 30449

How can you prevent decay in a function template taking T by value?

Score: 9

Views: 2955

Answers: 4

Read More
wimalopaan
wimalopaan

Reputation: 5472

Function template overloading vs class templates

Score: 1

Views: 118

Answers: 1

Read More
Sarfaraz Nawaz
Sarfaraz Nawaz

Reputation: 361672

Why can function templates not be partially specialized?

Score: 97

Views: 31366

Answers: 5

Read More
Vinod
Vinod

Reputation: 1091

declaring a template function with void return taking a typedef

Score: 0

Views: 68

Answers: 1

Read More
zwhconst
zwhconst

Reputation: 1513

If I forward declare a function template, may I put the definition after the calling site and not explicit instantiate it at all?

Score: 4

Views: 158

Answers: 0

Read More
MyClass
MyClass

Reputation: 362

Implementing variadic Max function in C++20

Score: 9

Views: 476

Answers: 2

Read More
ulfben
ulfben

Reputation: 151

How can I minimize repeated template type names?

Score: 3

Views: 200

Answers: 2

Read More
user877329
user877329

Reputation: 6220

How to create an array of N floats values with fold expression?

Score: 2

Views: 336

Answers: 1

Read More
Crackie
Crackie

Reputation: 355

What is the difference of using `typename` in the following?

Score: 2

Views: 129

Answers: 2

Read More
Aditya Garg
Aditya Garg

Reputation: 89

Why I need default sum function, for a variadic template sum?

Score: 0

Views: 150

Answers: 3

Read More
Sam Moldenha
Sam Moldenha

Reputation: 284

Is there a way to pass a function template, as an argument in another function?

Score: 2

Views: 146

Answers: 2

Read More
PreviousPage 3Next