C++ Patterns: Executing Around Sequences

Kevlin Henney
2000 European Conference on Pattern Languages of Programs  
Sequential control flow forms the backbone of any procedural program. Just as common function, data, and structure in a C++ program can be factored out using functions, classes, and templates, common control flow schemas can also be named and abstracted. One such recurring schema, or programming cliché, is the embracing or bracketing of a sequence by a pair of actions, such as resource acquisition and release operations executed around the actual resource usage code. The patterns in this paper
more » ... ocument idiomatic practices for abstracting such control flow in C++. They are connected into a language and further explored through a narrative example.
dblp:conf/europlop/Henney00 fatcat:virjkwsukzeqfdpxql7t3wvlcq