StackOverflow Questions for Tag: template-function

Vilim Hrupelj
Vilim Hrupelj

Reputation: 11

Is there a way to evaluate a bundle of constexpr functions at compile time in C++?

Score: 1

Views: 63

Answers: 1

Read More
K-os
K-os

Reputation: 248

Is the type of a non-type template parameter part of the function signature?

Score: 4

Views: 107

Answers: 1

Read More
AlecadM
AlecadM

Reputation: 3

Loop over pairs from 2 constexpr arrays to instantiate and run template function

Score: 0

Views: 139

Answers: 3

Read More
toxic
toxic

Reputation: 516

Overload resolution and template argument deduction - why is 0 special?

Score: 30

Views: 1580

Answers: 1

Read More
埃博拉酱
埃博拉酱

Reputation: 325

How to expand function template parameters package in std::function as the function's argument?

Score: 0

Views: 141

Answers: 1

Read More
VivekDev
VivekDev

Reputation: 25349

Why template function which is constrained to work with integrals, is working fine with char as well?

Score: 3

Views: 177

Answers: 1

Read More
UncleBob
UncleBob

Reputation: 1391

Function template won't compile in VS2019 express

Score: 0

Views: 299

Answers: 1

Read More
Ashley Ben Story
Ashley Ben Story

Reputation: 39

How do I pass a parameter pack to a std:tuple?

Score: 1

Views: 139

Answers: 3

Read More
LibrarristShalinward
LibrarristShalinward

Reputation: 81

How to use attribute (not its value) of a struct/class as template/function parameter?

Score: 3

Views: 60

Answers: 1

Read More
WannaBeGeek
WannaBeGeek

Reputation: 4076

Can a class member function template be virtual?

Score: 397

Views: 301862

Answers: 16

Read More
daniel creatd
daniel creatd

Reputation: 81

Weird behaviour with 'if constexpr' and templates in MSVC

Score: 8

Views: 167

Answers: 1

Read More
user1899020
user1899020

Reputation: 13575

inline template function?

Score: 45

Views: 57660

Answers: 4

Read More
georgi koyrushki
georgi koyrushki

Reputation: 51

C++ Function Parameters Guiding CTAD

Score: 0

Views: 93

Answers: 0

Read More
uray
uray

Reputation: 11562

partial function template specialization with templated object as function argument

Score: 0

Views: 40

Answers: 0

Read More
Muthuraj
Muthuraj

Reputation: 21

How to create a generic factory function that creates an instance of some type?

Score: 1

Views: 89

Answers: 1

Read More
Gonen I
Gonen I

Reputation: 6107

Perfect Forward using std::forward vs RefRefCast

Score: 5

Views: 208

Answers: 2

Read More
H.v.M.
H.v.M.

Reputation: 1633

Declaring and naming a type in the function signature so it can be re-used in the function

Score: 0

Views: 76

Answers: 2

Read More
paulm
paulm

Reputation: 5882

How do you deduce the size of a std::array?

Score: 24

Views: 14907

Answers: 4

Read More
Ussu20
Ussu20

Reputation: 199

Is it mandatory to have a function template to pass std::vector as an argument?

Score: 1

Views: 115

Answers: 2

Read More
Qwe Qwe
Qwe Qwe

Reputation: 495

Parameter pack and perfect forwarding

Score: 2

Views: 93

Answers: 2

Read More
PreviousPage 1Next