All Questions
Tagged with lambda design-patterns
4 questions
1
vote
1
answer
171
views
Repeatedly open and close a PDF document to perform various operations [closed]
I am trying to implement the Execute Around pattern described in Kent Beck's Smalltalk Best Practice Patterns. An example in Java could be found here.
Basically, I am repeatedly opening and closing ...
0
votes
2
answers
270
views
Reach C++ policy-based common interface with different template parameters from one container
Please review my solution for the following problem. I am interested in:
What do you think of the design
Improvement tips
Usability
Efficiency
Problem: Need to be store policy-based objects with ...
1
vote
1
answer
324
views
Control class for an entity
For a Student object in the package entity, I have a control.studentpackage with classes ...
4
votes
2
answers
5k
views
C++11 factory pattern with lambdas
Anonymous functions are one of the best features of C++11. They make everything so beautiful!
However, one can get carried away and start overusing them.
This code calls a function that reads ...