Questions tagged [template]
a design structure for creating several things that are almost identical but need different values. Not template-meta-programming.
559 questions
4
votes
2
answers
155
views
Lookahead match
I need to write code that contains a lot of checks for sequences in a list of the form:
...
8
votes
2
answers
618
views
Own HTTP server implementation in Java with a simple template engine
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?
...
7
votes
1
answer
365
views
General Two-dimensional Elliptical Gaussian Image Generator in C++
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/...
6
votes
3
answers
1k
views
Game Design Patterns Command implementation
I started reading the GameProgrammingPatterns book and wanted to implement the command pattern.
...
0
votes
2
answers
135
views
Small library for metrics scraping in C++
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 ...
2
votes
0
answers
80
views
A recursive_minmax Template Function with Unwrap Level Implementation
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 ...
0
votes
0
answers
94
views
Pure loop in RegEx to find the substrings with condition
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! ...
2
votes
0
answers
75
views
apply_multichannel Template Function Implementation in C++
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 ...
3
votes
1
answer
109
views
apply_each_single_output Template Function Implementation for Image in C++ (Rev.2)
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 ...
4
votes
1
answer
212
views
apply_each_single_output Template Function Implementation for Image in C++
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. ...
7
votes
1
answer
256
views
two_input_map_reduce Template Function Implementation in C++
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 ...
6
votes
2
answers
132
views
ADT vector in C++
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:
...
6
votes
1
answer
211
views
euclidean_distance Template Function Implementation for Image in C++
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 ...
6
votes
1
answer
383
views
rand Template Function Implementation for Image in C++
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 ...
6
votes
1
answer
262
views
Result template
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 ...