Skip to main content

Questions tagged [template]

a design structure for creating several things that are almost identical but need different values. Not template-meta-programming.

4 votes
2 answers
155 views

I need to write code that contains a lot of checks for sequences in a list of the form: ...
adrianton3's user avatar
8 votes
2 answers
618 views

I would like to hear what you think about my simple HTTP Server implementation with a template engine in Java. Have I overlooked any "pitfalls or caveats", or is there anything else to note? ...
Tobias Grothe's user avatar
7 votes
1 answer
365 views

This is a follow-up question for Two dimensional gaussian image generator in C++ and Three dimensional gaussian image generator in C++. According to the statement in https://fabiandablander.com/...
JimmyHu's user avatar
  • 7,575
6 votes
3 answers
1k views

I started reading the GameProgrammingPatterns book and wanted to implement the command pattern. ...
Hrant Nurijanyan's user avatar
0 votes
2 answers
135 views

I did an internship test project (source: https://github.com/SynI20N/VKInfo). Looking for some middle or senior devs to rate it and point out potential problems with my code. Follow up: How would you ...
SyRoN's user avatar
  • 9
2 votes
0 answers
80 views

This is a follow-up question for A recursive_minmax Template Function Implementation in C++ and A recursive_flatten_view Template Function Implementation in C++. The ...
JimmyHu's user avatar
  • 7,575
0 votes
0 answers
94 views

I want to share my invention, which allows you to use only one RegEx, which will search for substrings in a string with a certain condition. If you want, call it a RegEx loop that didn't exist before! ...
Raf's user avatar
  • 9
2 votes
0 answers
75 views

This is a follow-up question for apply_each_single_output Template Function Implementation for Image in C++. Considering the alternative approach proposed by G. Sliepen, I am trying to implement ...
JimmyHu's user avatar
  • 7,575
3 votes
1 answer
109 views

This is a follow-up question for apply_each_single_output Template Function Implementation for Image in C++. Considering the suggestion in G. Sliepen's answer: What if you add an ...
JimmyHu's user avatar
  • 7,575
4 votes
1 answer
212 views

This is a follow-up question for two_input_map_reduce Template Function Implementation in C++ and euclidean_distance Template Function Implementation for Image in C++. Considering the opinion from G. ...
JimmyHu's user avatar
  • 7,575
7 votes
1 answer
256 views

This is a follow-up question for euclidean_distance Template Function Implementation for Image in C++. To avoid two unnecessary temporary images in the previous version of code, a new ...
JimmyHu's user avatar
  • 7,575
6 votes
2 answers
132 views

I have created a vector ADT, and this is a brief code for all of you. I will further add some more methods in it. Kindly review my below code: ...
user288615's user avatar
6 votes
1 answer
211 views

This is a follow-up question for Manhattan distance calculation between two images in C++. For learning C++23 and researching purposes, I am attempting to implement a function ...
JimmyHu's user avatar
  • 7,575
6 votes
1 answer
383 views

This is a follow-up question for An Updated Multi-dimensional Image Data Structure with Variadic Template Functions in C++. I am trying to mimic Matlab's rand function into TinyDIP library. The ...
JimmyHu's user avatar
  • 7,575
6 votes
1 answer
262 views

I'm a bit new to templates in C++ (I'm mostly a C guy) and wanted to see if I could create a result template. What I want to know is if there are any pitfalls/oversights in my code. You can assume ...
Daniel Walker's user avatar

15 30 50 per page
1
2 3 4 5
38